LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

gvcolor

graphviz filter that colors nodes in a ranked directed graph

TLDR

Color a graph by rank
$ dot -Tcanon [graph.gv] | gvcolor | dot -Tpng -o [output.png]
copy
Color and output to file
$ dot -Tcanon [graph.gv] | gvcolor > [colored.gv]
copy

SYNOPSIS

gvcolor [files]

DESCRIPTION

gvcolor (formerly colorize) is a Graphviz filter that sets node colors from initial seed values on a ranked digraph. Colors flow along edges from tail to head and are averaged, as HSB vectors, at each node, producing a visual gradient across the graph.The graph must already be laid out by dot (so nodes carry position/rank information), and initial colors are set via the color attribute on seed nodes. The graph attribute flow=back reverses the direction colors propagate, saturation=min,max adjusts saturation linearly across ranks, and Defcolor sets a fallback color for uncolored nodes.

PARAMETERS

FILES

Input graph files already laid out by dot. Reads stdin if none given.

INSTALL

sudo apt install graphviz
copy
sudo dnf install graphviz
copy
sudo pacman -S graphviz
copy
sudo apk add graphviz
copy
sudo zypper install graphviz
copy
brew install graphviz
copy
nix profile install nixpkgs#graphviz
copy

CAVEATS

Requires a graph already processed by dot; exits with status 1 if nodes lack position information. Related but distinguishable seed colors (e.g., blue-green, green, light yellow) work best.

SEE ALSO

dot(1), gc(1), gvpr(1), ccomps(1), sccmap(1), tred(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid