Skip to content

Commit 3031637

Browse files
author
Jessica R. Cohen
committed
Fixed typo in recent fix to modularity.py
1 parent 375b15e commit 3031637

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

brainx/modularity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def __init__(self, graph, index):
7575

7676
# We'll need the graph's adjacency matrix often, so store it once
7777
self.graph_adj_matrix = nx.adj_matrix(graph).todense() # Must convert to dense matrix before making into a numpy array (line was previously: self.graph_adj_matrix = nx.adj_matrix(graph))
78-
self.graph_adj_matrix = nx.adj_matrix(graph)
7978
#make sure adj_matrix is binary otherwise raise exception
8079
if not self.graph_adj_matrix.sum() == \
8180
self.graph_adj_matrix.astype(bool).sum():

0 commit comments

Comments
 (0)