All Posts programming colorize edges of a graph layout to clarify crossing edges | edgepaint cheat-sheet

colorize edges of a graph layout to clarify crossing edges | edgepaint cheat-sheet

· 152 words · 1 minute read

Colorize edges of a graph layout to clarify crossing edges.

Colorize edges of one or more graph layouts (that already have layout information) to clarify crossing edges:

edgepaint path/to/layout1.gv path/to/layout2.gv ... > path/to/output.gv

Colorize edges using a color scheme. (See https://graphviz.org/doc/info/colors.html#brewer ):

edgepaint -color-scheme=accent7 path/to/layout.gv > path/to/output.gv

Lay out a graph and colorize its edges, then convert to a PNG image:

dot path/to/input.gv | edgepaint | dot -T png > path/to/output.png

Display help:

edgepaint -?

Graphviz filters: acyclic, bcomps, comps, edgepaint, gvcolor, gvpack, mingle, nop, sccmap, tred, & unflatten.

Read more on this official PDF documentation: https://graphviz.org/pdf/edgepaint.1.pdf .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .