~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/src/colorize.1

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

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