Debian Codegraph @

cmd/tools/gvcolor.1

raw
1 .TH GVCOLOR 1 "21 March 2001"
2 .SH NAME
3 gvcolor \- flow colors through a ranked digraph
4 .SH SYNOPSIS
5 .B gvcolor
6 [
7 .I files
8 ]
9 .SH "USAGE"
10 .ft 5
11 dot file.gv | gvcolor | dot \-T\fI<format>\fP
12 .ft
13 .SH DESCRIPTION
14 .B gvcolor
15 (previously known as
16 .BR colorize)
17 is a filter that sets node colors from initial seed values.
18 Colors flow along edges from tail to head, and are averaged
19 (as HSB vectors) at nodes.
20 \fIThe graph must already have been processed by dot.\fP
21 Appropriate choice of initial colors yields drawings in which node
22 colors help to emphasize logical relationships between nodes, even
23 when they are spread far apart in the layout.
24 .PP
25 Initial colors must be set externally, using the \fBcolor\fP
26 attribute of a node. It is often effective to
27 assign colors to a few key source or sink nodes, manually setting
28 their colors by editing the graph file.
29 Color names are as in \fIdot(1)\fP: symbolic names or RGB triples.
30 It is best to choose some easily\(hydistinguished but related colors;
31 not necessarily spaced evenly around the color wheel. For example,
32 blue_green, green, and light_yellow looks better than red, green, blue.
33 .PP
34 Certain graph attributes control the \fIgvcolor\fP algorithm.
35 \fBflow=back\fP reverses the flow of colors from heads to tails.
36 \fBsaturation=.1,.9\fP (or any two numbers between 0 and 1)
37 adjusts the color saturation linearly from least to greatest rank.
38 If \fBDefcolor\fP is set, this color value is applied to any
39 node not otherwise colored.
40 .SH "EXIT STATUS"
41 The following exit values are returned:
42 .TP 4
43 .B 0
44 Successful completion.
45 .TP
46 .B 1
47 If nodes of the graph do not possess a ``pos'' attribute.
48 .SH BUGS
49 It would be nice to make the program work without relying on
50 an initial pass through \fBdot\fP.
51 .SH AUTHORS
52 Stephen C. North <[email protected]>
53 .br
54 Emden R. Gansner <[email protected]>
55 .SH "SEE ALSO"
56 gc(1), dot(1), gvpr(1), ccomps(1), sccmap(1), tred(1), libgraph(3)