WestHealth / pyvis

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

pyvis- Distance between nodes #41

Open bharnoufi opened 5 years ago

bharnoufi commented 5 years ago

Is it possible to specify the distance between nodes (that means the length of the edges)? It is indeed possible to define the width but not the length. Two "similar" nodes could be represented very close in the space ...

Thanks!

laimaretto commented 3 years ago

I think you could try with the parameter springLength

macio232 commented 3 years ago

You can make (calculate the distance, random draw, whatever) matrix of distances, apply MDS with 2 output dimensions and set x and y parameter for each node