Skip to content

Commit

Permalink
process links of format {'source': nodeid, 'target': nodeid} (not {'l…
Browse files Browse the repository at this point in the history
…ink' [source, target]}. allows to output a more node-link dictionary-like object from webapp
  • Loading branch information
ulfaslak committed Apr 11, 2019
1 parent 58906f7 commit 7e3b8cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netwulf/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def draw_netwulf(network_properties, fig=None, ax=None, figsize=None):
lines = []
linewidths = []
for link in network_properties['links']:
u, v = link['link']
u, v = link['source'], link['target']
lines.append([
[pos[u][0], pos[v][0]],
[pos[u][1], pos[v][1]]
Expand Down

0 comments on commit 7e3b8cd

Please sign in to comment.