comparison toolboxes/graph_visualisation/share/man/man1/osage.1 @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 .TH OSAGE 1 "27 May 2009" \*(eX
2 .SH NAME
3 osage \- filter for drawing clustered graphs
4 .SH SYNOPSIS
5 \fBosage\fR
6 [\fB\-\fR(\fBG\fR|\fBN\fR|\fBE\fR)\fIname=value\fR]
7 [\fB\-T\fIlang\fR]
8 [\fB\-l\fIlibfile\fR]
9 [\fB\-o\fIoutfile\fR]
10 [\fB\-O\fR]
11 [\fB\-P\fR]
12 [\fB\-v\fR]
13 [\fB\-V\fR]
14 [files]
15 .SH DESCRIPTION
16 .I osage
17 draws clustered graphs. As input, it takes any graph in the
18 .I dot
19 format. It draws the graph recursively. At each level, there will
20 be a collection of nodes and a collection of cluster subgraphs.
21 The internals of each cluster subgraph are laid out, then the
22 cluster subgraphs and nodes at the current level are positioned
23 relative to each other, treating each cluster subgraph as a node.
24 .P
25 At each level, the nodes and cluster subgraphs are viewed as rectangles
26 to be packed together. At present, edges are ignored during packing.
27 Packing is done using the standard packing functions. In particular,
28 the graph attributes \fBpack\fP and \fBpackmode\fP control the layout.
29 Each graph and cluster can specify its own values for these attributes.
30 Remember also that a cluster inherits its attribute values from
31 its parent graph.
32 .P
33 After all nodes and clusters, edges are routed based on the value of
34 the \fBsplines\fP attribute.
35 .SH OUTPUT FORMATS
36 Osage uses an extensible plugin mechanism for its output renderers,
37 so to see what output formats your installation of osage supports
38 you can use ``osage \-Txxx'' (where xxx is an unlikely format)
39 and check the warning message.
40 Also, The plugin mechanism supports multiple implementations
41 of the output formats.
42 To see what variants are available, use, for example: ``osage \-Tpng:''
43 and to force a particular variant, use, for example: ``osage \-Tpng:gd''
44 .P
45 Traditionally, osage supports the following:
46 \fB\-Tps\fP (PostScript),
47 \fB\-Tsvg\fP \fB\-Tsvgz\fP (Structured Vector Graphics),
48 \fB\-Tfig\fP (XFIG graphics),
49 \fB\-Tmif\fP (FrameMaker graphics),
50 \fB\-Thpgl\fP (HP pen plotters), and \fB\-Tpcl\fP (Laserjet printers),
51 \fB\-Tpng\fP \fB\-Tgif\fP (bitmap graphics),
52 \fB\-Tdia\fP (GTK+ based diagrams),
53 \fB\-Timap\fP (imagemap files for httpd servers for each node or edge
54 that has a non\(hynull "href" attribute.),
55 \fB\-Tcmapx\fP (client\(hyside imagemap for use in html and xhtml).
56 Additional less common or more special\(hypurpose output formats
57 can be found at http://www.graphviz.org/cvs/doc/info/output.html.)
58 .P
59 Alternative plugins providing support for a given output format
60 can be found from the error message resulting from appending a ':' to the format. e.g. \fB-Tpng:\fP
61 The first plugin listed is always the default.
62 .SH GRAPH FILE LANGUAGE
63 Here is a synopsis of the graph file language, traditionally using the extension \fB.gv\fR or \fB.dot\fR, for graphs:
64 .PP
65 [\fBstrict\fR] (\fBgraph\fR|\fBdigraph\fR) \fIname\fP { \fIstatement\(hylist\fP }\fR
66 .br
67 Is the top level graph. If the graph is \fBstrict\fR then multiple edges are
68 not allowed between the same pairs of nodes.
69 If it is a directed graph, indicated by \fBdigraph\fR,
70 then the \fIedgeop\fR must be "\->". If it is an undirected \fBgraph\fR
71 then the \fIedgeop\fR must be "\-\-".
72 Statements may be:
73 .PP
74 \fIname\fB=\fIval\fB;\fR
75 .br
76 \fBnode [\fIname\fB=\fIval\fB];\fR
77 .br
78 \fBedge [\fIname\fB=\fIval\fB];\fR
79 .br
80 Set default graph, node, or edge attribute \fIname\fP to \fIval\fP.
81 Any subgraph, node, or edge appearing after this inherits the new
82 default attributes.
83 .PP
84 \fBn0 [\fIname0=val0,name1=val1,...\fB];\fR
85 Creates node \fBn0\fP (if it does not already exist)
86 and sets its attributes according to the optional list.
87 .PP
88 \fBn0 \fIedgeop\fR n1 \fIedgeop\fR \fI...\fB \fIedgeop\fR nn [\fIname0=val0,name1=val1,...\fB];\fR
89 .br
90 Creates edges between nodes \fBn0\fP, \fBn1\fP, ..., \fBnn\fP and sets
91 their attributes according to the optional list.
92 Creates nodes as necessary.
93 .PP
94 [\fBsubgraph \fIname\fB] { \fIstatement\(hylist \fB}\fR
95 .br
96 Creates a subgraph. Subgraphs may be used in place
97 of \fBn0\fP, ..., \fBnn\fP in the above statements to create edges.
98 [\fBsubgraph \fIname\fR] is optional;
99 if missing, the subgraph is assigned an internal name.
100 .PP
101 Comments may be /*C\(hylike*/ or //C++\(hylike.
102
103 .PP
104 Attribute names and values are ordinary (C\(hystyle) strings.
105 The following sections describe attributes that control graph layout.
106
107 .SH "GRAPH ATTRIBUTES"
108 .PP
109 \fBsize="\fIx,y\fP"\fR sets bounding box of drawing in inches.
110 .PP
111 \fBpage="\fIx,y\fP"\fR sets the PostScript pagination unit.
112 .PP
113 \fBratio=\fIf\fR sets the aspect ratio to \fIf\fP which may be
114 a floating point number, or one of the keywords \fBfill\fP,
115 \fBcompress\fP, or \fBauto\fP.
116 .PP
117 \fBpagedir=\fR[TBLR][TBLR] sets the major and minor order of pagination.
118 .PP
119 \fBrotate=90\fR sets landscape mode.
120 (\fBorientation=land\fR is backward compatible but obsolete.)
121 .PP
122 \fBcenter=\fIn\fR a non\(hyzero value centers the drawing on the page.
123 .PP
124 \fBlayers="\fIid:id:id:id\fR" is a sequence of layer identifiers for
125 overlay diagrams. The PostScript array variable \fIlayercolorseq\fR
126 sets the assignment of colors to layers. The least index is 1 and
127 each element must be a 3\(hyelement array to be interpreted as a color coordinate.
128 .PP
129 \fBcolor=\fIcolorvalue\fR sets foreground color (\fBbgcolor\fP for background).
130 .PP
131 \fBhref=\fI"url"\fR the default url for image map files; in PostScript files,
132 the base URL for all relative URLs, as recognized by Acrobat Distiller
133 3.0 and up.
134 .PP
135 \fBURL=\fI"url"\fR ("URL" is a synonym for "href".)
136 .PP
137 \fBstylesheet=\fI"file.css"\fR includes a reference to a stylesheet
138 in \-Tsvg and \-Tsvgz outputs. Ignored by other formats.
139 .PP
140 \fBsplines\fR. If set to \fItrue\fR, edges are
141 drawn as splines.
142 If set to \fIpolyline\fR, edges are
143 drawn as polylines.
144 If set to \fIortho\fR, edges are
145 drawn as orthogonal polylines.
146 In all of these cases, the nodes may not overlap.
147 If \fBsplines=\fIfalse\fR or \fBsplines=\fIline\fR, edges are
148 drawn as line segments.
149 The default is \fIfalse\fR.
150
151 .SH "NODE ATTRIBUTES"
152 .PP
153 \fBheight=\fId\fR or \fBwidth=\fId\fR sets minimum height or width.
154 Adding \fBfixedsize=true\fP forces these to be the actual size
155 (text labels are ignored).
156 .PP
157 \fBshape=record polygon epsf \fIbuiltin_polygon\fR
158 .br
159 \fIbuiltin_polygon\fR is one of: \fBplaintext ellipse oval circle egg
160 triangle box diamond trapezium parallelogram house hexagon octagon
161 note tab box3d component.\fR
162 (Polygons are defined or modified by the following node attributes:
163 \fBregular\fR, \fBperipheries\fR, \fBsides\fR, \fBorientation\fR,
164 \fBdistortion\fR and \fBskew\fR.) \fBepsf\fR uses the node's
165 \fBshapefile\fR attribute as the path name of an external
166 EPSF file to be automatically loaded for the node shape.
167 .PP
168 \fBlabel=\fItext\fR where \fItext\fP may include escaped newlines
169 \\\|n, \\\|l, or \\\|r for center, left, and right justified lines.
170 The string '\\N' value will be replaced by the node name.
171 The string '\\G' value will be replaced by the graph name.
172 Record labels may contain recursive box lists delimited by { | }.
173 Port identifiers in labels are set off by angle brackets < >.
174 In the graph file, use colon (such as, \fBnode0:port28\fR).
175 .PP
176 \fBfontsize=\fIn\fR sets the label type size to \fIn\fP points.
177 .PP
178 \fBfontname=\fIname\fR sets the label font family name.
179 .PP
180 \fBcolor=\fIcolorvalue\fR sets the outline color, and the default fill color
181 if style=filled and \fBfillcolor\fR is not specified.
182 .PP
183 \fBfillcolor=\fIcolorvalue\fR sets the fill color
184 when style=filled. If not specified, the fillcolor when style=filled defaults
185 to be the same as the outline color.
186 .PP
187 \fBfontcolor=\fIcolorvalue\fR sets the label text color.
188 .PP
189 A \fIcolorvalue\fP may be "\fIh,s,v\fB"\fR (hue, saturation, brightness)
190 floating point numbers between 0 and 1, or an X11 color name such as
191 \fBwhite black red green blue yellow magenta cyan\fR or \fBburlywood\fR,
192 or a "\fI#rrggbb" (red, green, blue, 2 hex characters each) value.
193 .PP
194 \fBstyle=filled solid dashed dotted bold invis\fP or any Postscript code.
195 .PP
196 \fBlayer=\fIid\fR or \fIid:id\fR or "all" sets the node's active layers.
197 The empty string means no layers (invisible).
198 .PP
199 The following attributes apply only to polygon shape nodes:
200 .PP
201 \fBregular=\fIn\fR if \fIn\fR is non\(hyzero then the polygon is made
202 regular, i.e. symmetric about the x and y axis, otherwise the
203 polygon takes on the aspect ratio of the label.
204 \fIbuiltin_polygons\fR that are not already regular are made regular
205 by this attribute.
206 \fIbuiltin_polygons\fR that are already regular are not affected (i.e.
207 they cannot be made asymmetric).
208 .PP
209 \fBperipheries=\fIn\fR sets the number of periphery lines drawn around
210 the polygon. This value supersedes the number of periphery lines
211 of \fIbuiltin_polygons\fR.
212 .PP
213 \fBsides=\fIn\fR sets the number of sides to the polygon. \fIn\fR<3
214 results in an ellipse.
215 This attribute is ignored by \fIbuiltin_polygons\fR.
216 .PP
217 \fBorientation=\fIf\fR sets the orientation of the first apex of the
218 polygon counterclockwise from the vertical, in degrees.
219 \fIf\fR may be a floating point number.
220 The orientation of labels is not affected by this attribute.
221 This attribute is added to the initial orientation of \fIbuiltin_polygons.\fR
222 .PP
223 \fBdistortion=\fIf\fR sets the amount of broadening of the top and
224 narrowing of the bottom of the polygon (relative to its orientation).
225 Floating point values between \-1 and +1 are suggested.
226 This attribute is ignored by \fIbuiltin_polygons\fR.
227 .PP
228 \fBskew=\fIf\fR sets the amount of right\(hydisplacement of the top and
229 left\(hydisplacement of the bottom of the polygon (relative to its
230 orientation).
231 Floating point values between \-1 and +1 are suggested.
232 This attribute is ignored by \fIbuiltin_polygons\fR.
233 .PP
234 \fBhref=\fI"url"\fR sets the url for the node in imagemap, PostScript and SVG
235 files.
236 The substrings '\\N' and '\\G' are substituted in the same manner as
237 for the node label attribute.
238 Additionally the substring '\\L' is substituted with the node label string.
239 .PP
240 \fBURL=\fI"url"\fR ("URL" is a synonym for "href".)
241 .PP
242 \fBtarget=\fI"target"\fR is a target string for client\(hyside imagemaps
243 and SVG, effective when nodes have a URL.
244 The target string is used to determine which window of the browser is used
245 for the URL. Setting it to "_graphviz" will open a new window if it doesn't
246 already exist, or reuse it if it does.
247 If the target string is empty, the default,
248 then no target attribute is included in the output.
249 The substrings '\\N' and '\\G' are substituted in the same manner as
250 for the node label attribute.
251 Additionally the substring '\\L' is substituted with the node label string.
252 .PP
253 \fBtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps
254 and SVG, effective when nodes have a URL. The tooltip string defaults to be the
255 same as the label string, but this attribute permits nodes without
256 labels to still have tooltips thus permitting denser graphs.
257 The substrings '\\N' and '\\G' are substituted in the same manner as
258 for the node label attribute.
259 Additionally the substring '\\L' is substituted with the node label string.
260
261
262 .SH "EDGE ATTRIBUTES"
263 .PP
264 \fBlabel=\fItext\fR where \fItext\fR may include escaped newlines
265 \\\|n, \\\|l, or \\\|r for centered, left, or right justified lines.
266 If the substring '\\T' is found in a label it will be replaced by the tail_node name.
267 If the substring '\\H' is found in a label it will be replaced by the head_node name.
268 If the substring '\\E' value is found in a label it will be replaced by: tail_node_name\->head_node_name
269 If the substring '\\G' is found in a label it will be replaced by the graph name.
270 or by: tail_node_name\-\-head_node_name for undirected graphs.
271 .PP
272 \fBfontsize=\fIn\fR sets the label type size to \fIn\fP points.
273 .PP
274 \fBfontname=\fIname\fR sets the label font family name.
275 .PP
276 \fBfontcolor=\fIcolorvalue\fR sets the label text color.
277 .PP
278 \fBstyle=solid dashed dotted bold invis\fP
279 .PP
280 \fBcolor=\fIcolorvalue\fR sets the line color for edges.
281 .PP
282 \fBcolor=\fIcolorvaluelist\fR a ':' separated list of \fIcolorvalue\fR creates
283 parallel edges, one edge for each color.
284 .PP
285 \fBdir=forward back both none\fP controls arrow direction.
286 .PP
287 \fBtailclip,headclip=false\fP disables endpoint shape clipping.
288 .PP
289 \fBhref=\fI"url"\fR sets the url for the node in imagemap, PostScript and SVG
290 files.
291 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
292 for the edge label attribute.
293 Additionally the substring '\\L' is substituted with the edge label string.
294 .PP
295 \fBURL=\fI"url"\fR ("URL" is a synonym for "href".)
296 .PP
297 \fBtarget=\fI"target"\fR is a target string for client\(hyside imagemaps
298 and SVG, effective when edges have a URL.
299 If the target string is empty, the default,
300 then no target attribute is included in the output.
301 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
302 for the edge label attribute.
303 Additionally the substring '\\L' is substituted with the edge label string.
304 .PP
305 \fBtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps
306 effective when edges have a URL. The tooltip string defaults to be the
307 same as the edge label string.
308 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
309 for the edge label attribute.
310 Additionally the substring '\\L' is substituted with the edge label string.
311 .PP
312 \fBarrowhead,arrowtail=none, normal, inv, dot, odot, invdot, invodot,
313 tee, empty, invempty, open, halfopen, diamond, odiamond, box, obox, crow\fP.
314 .PP
315 \fBarrowsize\fP (norm_length=10,norm_width=5,
316 inv_length=6,inv_width=7,dot_radius=2)
317 .PP
318 \fBheadlabel,taillabel=string\fP for port labels.
319 \fBlabelfontcolor\fP,\fBlabelfontname\fP,\fBlabelfontsize\fP
320 for head and tail labels.
321 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
322 for the edge label attribute.
323 Additionally the substring '\\L' is substituted with the edge label string.
324 .PP
325 \fBheadhref=\fI"url"\fR sets the url for the head port in imagemap, PostScript and SVG files.
326 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
327 for the edge label attribute.
328 Additionally the substring '\\L' is substituted with the edge label string.
329 .PP
330 \fBheadURL=\fI"url"\fR ("headURL" is a synonym for "headhref".)
331 .PP
332 \fBheadtarget=\fI"headtarget"\fR is a target string for client\(hyside imagemaps
333 and SVG, effective when edge heads have a URL.
334 The headtarget string is used to determine which window of the browser is used
335 for the URL. If the headtarget string is empty, the default,
336 then headtarget defaults to the same value as target for the edge.
337 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
338 for the edge label attribute.
339 Additionally the substring '\\L' is substituted with the edge label string.
340 .PP
341 \fBheadtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps
342 effective when head ports have a URL. The tooltip string defaults to be the
343 same as the headlabel string.
344 The substrings '\\T', '\\H', and '\\E' are substituted in the same manner as
345 for the edge label attribute.
346 Additionally the substring '\\L' is substituted with the edge label string.
347 .PP
348 \fBtailhref=\fI"url"\fR sets the url for the tail port in imagemap, PostScript and SVG files.
349 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
350 for the edge label attribute.
351 Additionally the substring '\\L' is substituted with the edge label string.
352 .PP
353 \fBtailURL=\fI"url"\fR ("tailURL" is a synonym for "tailhref".)
354 .PP
355 \fBtailtarget=\fI"tailtarget"\fR is a target string for client\(hyside imagemaps
356 and SVG, effective when edge tails have a URL.
357 The tailtarget string is used to determine which window of the browser is used
358 for the URL. If the tailtarget string is empty, the default,
359 then tailtarget defaults to the same value as target for the edge.
360 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
361 for the edge label attribute.
362 Additionally the substring '\\L' is substituted with the edge label string.
363 .PP
364 \fBtailtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps
365 effective when tail ports have a URL. The tooltip string defaults to be the
366 same as the taillabel string.
367 The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as
368 for the edge label attribute.
369 Additionally the substring '\\L' is substituted with the edge label string.
370 .PP
371 \fBlabeldistance\fP and \fPport_label_distance\fP set distance; also
372 \fBlabelangle\fP (in degrees CCW)
373 .PP
374 \fBdecorate\fP draws line from edge to label.
375 .PP
376 \fBsamehead,sametail\fP aim edges having the same value to the
377 same port, using the average landing point.
378 .PP
379 \fBlayer=\fIid\fR or \fIid:id\fR or "all" sets the edge's active layers.
380 The empty string means no layers (invisible).
381
382 .PP
383 \fB(neato\(hyspecific attributes)\fR
384 .br
385 \fBw=\fIf\fR sets the weight (spring constant) of an edge
386 to the given floating point value. The default is 1.0;
387 greater values make the edge tend more toward its optimal length.
388 .PP
389 \fBlen=\fIf\fR sets the optimal length of an edge.
390 The default is 1.0.
391 .SH "COMMAND LINE OPTIONS"
392 \fB\-G\fP sets a default graph attribute.
393 .br
394 \fB\-N\fP sets a default node attribute.
395 .br
396 \fB\-E\fP sets a default edge attribute.
397 Example: \fB\-Gsize="7,8" \-Nshape=box \-Efontsize=8\fR
398 .PP
399 \fB\-l\fIfile\fR loads custom PostScript library files.
400 Usually these define custom shapes or styles.
401 If \fB\-l\fP is given by itself, the standard library is omitted.
402 .PP
403 \fB\-T\fIlang\fR sets the output language as described above.
404 .PP
405 \fB\-O\fP automatically generate output filenames based on the input filename and the -T format.
406 .PP
407 \fB\-v\fP (verbose) prints various information useful for debugging.
408 .PP
409 \fB\-V\fP (version) prints version information and exits.
410 .PP
411 \fB\-?\fP prints the usage and exits.
412 .SH "EXAMPLES"
413 .nf
414 digraph test123 {
415 pack=8
416 subgraph cluster0 {
417 packmode=array
418 x y x0 y0 x1
419 subgraph cluster1 {
420 m n
421 }
422 }
423 b [shape=box];
424 c [label="hello\\\nworld",color=blue,fontsize=24,
425 fontname="Palatino\-Italic",fontcolor=red,style=filled];
426 a \-> z
427 x \-> z
428 a \-> b \-> c;
429 a \-> {x y};
430 edge [style=dashed,color=red];
431 b \-> x;
432 }
433 .fi
434 .SH AUTHORS
435 Emden R. Gansner <erg@research.att.com>
436 .SH "SEE ALSO"
437 This man page contains only a small amount of the information related
438 to the Graphviz layout programs. The most complete information can be
439 found at http://www.graphviz.org/Documentation.php, especially in the
440 on\(hyline reference pages. Most of these documents are also available in the
441 \fIdoc\fP and \fIdoc/info\fP subtrees in the source and binary distributions.
442 .PP
443 dot(1)