pyvis icon indicating copy to clipboard operation
pyvis copied to clipboard

pyvis- Distance between nodes

Open bharnoufi opened this issue 4 years ago • 2 comments

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!

bharnoufi avatar Jul 17 '19 16:07 bharnoufi

I think you could try with the parameter springLength

laimaretto avatar Sep 08 '20 12:09 laimaretto

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

macio232 avatar Oct 02 '20 22:10 macio232