Lay out a graph and colorize it, then convert to a PNG image

gvcolor

  • Colorize a ranked digraph with a range of colors.
    Graphviz filters: `acyclic`, `bcomps`, `comps`, `edgepaint`, `gvcolor`, `gvpack`, `mingle`, `nop`, `sccmap`, `tred`, & `unflatten`.
    More information: <https://graphviz.org/pdf/gvcolor.1.pdf>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dot {{path/to/input.gv}} | gvcolor | dot -T {{png}} > {{path/to/output.png}}

click the source code to copy install gvcolor on any operating system with command-not-found.com