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.
2 parents 02d55a0 + 145f75b commit 7938cf9Copy full SHA for 7938cf9
nitime/viz.py
@@ -680,7 +680,7 @@ def draw_graph(G,
680
681
# Build a 'weighted degree' array obtained by adding the (absolute value)
682
# of the weights for all edges pointing to each node:
683
- amat = nx.adjacency_matrix(G).todense() # get a normal array out of it
+ amat = nx.to_numpy_array(G) # get a normal array out of it
684
degarr = abs(amat).sum(0) # weights are sums across rows
685
686
# Map the degree to the 0-1 range so we can use it for sizing the nodes.
0 commit comments