[sfdp] How can I color edges depending on their length?
How can I color edges depending on their length?
Yifan Hu, the author of sfdp, is doing these visualizations of graphs from the University of Florida Sparse Matrix collection, many examples can be found here: http://yifanhu.net/GALLERY/GRAPHS/index.html
In these graphs, as you can see in the examples a "simple coloring scheme is used: longer edges are colored with colder colors, and short ones warmer".
I am trying to reproduce this effect. However, I am puzzled how it is achieved because to calculate the appropriate color one needs to know the edge length first (or not?).
sfdp - graphviz version 2.40.1 (20161225.0304)