LinuxCommandLibrary

edgepaint

graph edge coloring tool

TLDR

Color graph edges

$ edgepaint [graph.dot] -o [colored.dot]
copy
Color with specific angle
$ edgepaint -angle [15] [graph.dot]
copy
Use specific color scheme
$ edgepaint -color_scheme [accent8] [graph.dot]
copy

SYNOPSIS

edgepaint [options] [input] -o output

DESCRIPTION

edgepaint assigns colors to edges in a graph to improve visual distinction. It's part of Graphviz and helps make complex graphs more readable by ensuring adjacent edges have different colors.
The tool uses graph coloring algorithms to minimize color similarity between edges that share nodes or cross each other. This makes edge paths easier to follow in dense graphs.
edgepaint is typically used after layout with dot or other Graphviz tools.

PARAMETERS

INPUT

Input DOT file.
-o FILE
Output file.
-angle N
Minimum angle between colors.
-color_scheme NAME
Color scheme to use.
-share_endpoint
Share colors at endpoints.
--help
Display help information.

CAVEATS

Input must be already laid out graph. Limited color schemes available. Very dense graphs may still be hard to read.

HISTORY

edgepaint is part of Graphviz, developed at AT&T Labs Research. It addresses the practical problem of visual edge distinction in automatically laid out graphs.

SEE ALSO

dot(1), neato(1), graphviz(7)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community