Commit ebff059d authored by Alberts S's avatar Alberts S
Browse files

Adjust for pyvis 0.2.1

parent 44f62b9e
......@@ -137,6 +137,8 @@ class Visualizer(CapybaraNetty):
net.show_buttons(filter_=True)
net.from_nx(G)
net.barnes_hut(spring_length=250)
net.options.edges.smooth.enabled = False
for edge in net.edges:
edge["width"] = 2
edge["label"] = f'{get_edge_time_attribute(edge, "weight")}'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment