WestHealth / pyvis

Python package for creating and visualizing interactive network graphs.
http://pyvis.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
940 stars 162 forks source link

Applying physics to individual edges or applying different physics to each edge #287

Open tomsalmonza opened 2 weeks ago

tomsalmonza commented 2 weeks ago

Hello.

I am trying to visualize a IP Network which uses OSPF Metrics in its IGP. I would like the length of edges between nodes to be representative of the IGP ospf metric. I.e. a "longer" path should look longer.

This could be achieved by being able to assign physics springLength to each edge. Currently I can only see how to apply the springlength to the network as a whole using:

const options = { "physics": { "barnesHut": { "springLength": 160,