Skip to content

Commit 764a973

Browse files
author
Maxwell Bertolero
committed
Update nodal_roles.py
1 parent b9ad956 commit 764a973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

brainx/nodal_roles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def within_module_degree(graph, partition, weighted = False):
5454
return wd_dict
5555

5656

57-
def participation_coefficient(graph, partition):
57+
def participation_coefficient(graph, partition, weighted = False):
5858
'''
5959
Computes the participation coefficient for each node (Guimera et al. 2005).
6060
@@ -127,4 +127,4 @@ def participation_coefficient(graph, partition):
127127
else:
128128
pc = 1 - ((float(bm_degree) / float(degree))**2)
129129
pc_dict[source] = pc
130-
return pc_dict
130+
return pc_dict

0 commit comments

Comments
 (0)