We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d66cf37 commit 3c75e4aCopy full SHA for 3c75e4a
brainx/tests/test_nodal_roles.py
@@ -0,0 +1,13 @@
1
+#test nodal roles
2
+import unittest
3
+import networkx as nx
4
+from .. import nodal_roles as nr
5
+from .. import weighted_modularity as wm
6
+
7
+class TestNodalRoles(unittest.TestCase):
8
+ def test_participation_coefficient(self):
9
+ graph = nx.Graph()
10
+ graph.add_node(1)
11
+ partition = wm.WeightedPartition(graph)
12
+ with self.assertRaises(ValueError):
13
+ nr.participation_coefficient(partition)
0 commit comments