HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gvcolor — Colorize a ranked digraph with a range of colors. Graphviz filters: `acyclic`, `bcomps`, `comps`, `e

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandrankedcliwithgvcolorrangedigraphcolorize

Problem

How to use the gvcolor command: Colorize a ranked digraph with a range of colors. Graphviz filters: acyclic, bcomps, comps, edgepaint, gvcolor, gvpack, mingle, nop, sccmap, tred, and unflatten. More information: <https://graphviz.org/pdf/gvcolor.1.pdf>.

Solution

gvcolor — Colorize a ranked digraph with a range of colors. Graphviz filters: acyclic, bcomps, comps, edgepaint, gvcolor, gvpack, mingle, nop, sccmap, tred, and unflatten. More information: <https://graphviz.org/pdf/gvcolor.1.pdf>.

Colorize one or more ranked digraph (that were already processed by dot):
gvcolor {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}


Lay out a graph and colorize it, then convert to a PNG image:
dot {{path/to/input.gv}} | gvcolor | dot -T {{png}} > {{path/to/output.png}}


Display help:
gvcolor -?

Code Snippets

Colorize one or more ranked digraph (that were already processed by `dot`)

gvcolor {{path/to/layout1.gv path/to/layout2.gv ...}} > {{path/to/output.gv}}

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

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

Display help

gvcolor -?

Context

tldr-pages: common/gvcolor

Revisions (0)

No revisions yet.