'Python: Is it possible to set the length of graph edges on pyvis using edge weight as length?

As stated in the subject, I was wondering if it is possible to make edges on pyvis.network show up with the weight of the graph as their actual length. The graph in itself is undirected and around 2000 nodes large, most of which are just intermediate node. If not, are there other libraries that could do the same thing ?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source