Skip to content

Commit 7938cf9

Browse files
authored
Merge pull request #208 from emollier/networkx-2.8.8
2 parents 02d55a0 + 145f75b commit 7938cf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nitime/viz.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ def draw_graph(G,
680680

681681
# Build a 'weighted degree' array obtained by adding the (absolute value)
682682
# of the weights for all edges pointing to each node:
683-
amat = nx.adjacency_matrix(G).todense() # get a normal array out of it
683+
amat = nx.to_numpy_array(G) # get a normal array out of it
684684
degarr = abs(amat).sum(0) # weights are sums across rows
685685

686686
# Map the degree to the 0-1 range so we can use it for sizing the nodes.

0 commit comments

Comments
 (0)