Skip to content

Commit

Permalink
[FIX] test_quick file black
Browse files Browse the repository at this point in the history
  • Loading branch information
Anissa committed Oct 25, 2023
1 parent 4919fe2 commit 4314463
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions test_quick.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,32 @@
graph = ttp_to_stn.run()

options = {
'node_color': 'blue',
'node_size': 1000,
'width': 3,
}
pos=nx.spring_layout(ttp_to_stn.stn)
edge_labels=dict([((u,v,),[float(d['interval'][0]), float(d['interval'][0])])
for u,v,d in ttp_to_stn.stn.edges(data=True)])
"node_color": "blue",
"node_size": 1000,
"width": 3,
}
pos = nx.spring_layout(ttp_to_stn.stn)
edge_labels = dict(
[
(
(
u,
v,
),
[float(d["interval"][0]), float(d["interval"][0])],
)
for u, v, d in ttp_to_stn.stn.edges(data=True)
]
)
nx.draw_networkx_edge_labels(ttp_to_stn.stn, pos, edge_labels=edge_labels)
nx.draw_networkx(ttp_to_stn.stn, pos, with_labels = True, arrows=True, **options, edge_cmap=plt.cm.Reds)
nx.draw_networkx(
ttp_to_stn.stn,
pos,
with_labels=True,
arrows=True,
**options,
edge_cmap=plt.cm.Reds
)
pylab.show()

print("Done...")

0 comments on commit 4314463

Please sign in to comment.