| 1 |
.TH DOT 1 "12 January 2015" |
| 2 |
.SH NAME |
| 3 |
dot \- filter for drawing directed graphs |
| 4 |
.br |
| 5 |
neato \- filter for drawing undirected graphs |
| 6 |
.br |
| 7 |
twopi \- filter for radial layouts of graphs |
| 8 |
.br |
| 9 |
circo \- filter for circular layout of graphs |
| 10 |
.br |
| 11 |
fdp \- filter for drawing undirected graphs |
| 12 |
.br |
| 13 |
sfdp \- filter for drawing large undirected graphs |
| 14 |
.br |
| 15 |
patchwork \- filter for squarified tree maps |
| 16 |
.br |
| 17 |
osage \- filter for array-based layouts |
| 18 |
.SH SYNOPSIS |
| 19 |
\fBdot\fR |
| 20 |
[\fIoptions\fP] |
| 21 |
[files] |
| 22 |
.br |
| 23 |
\fBneato\fR |
| 24 |
[\fIoptions\fP] |
| 25 |
[files] |
| 26 |
.br |
| 27 |
\fBtwopi\fR |
| 28 |
[\fIoptions\fP] |
| 29 |
[files] |
| 30 |
.br |
| 31 |
\fBcirco\fR |
| 32 |
[\fIoptions\fP] |
| 33 |
[files] |
| 34 |
.br |
| 35 |
\fBfdp\fR |
| 36 |
[\fIoptions\fP] |
| 37 |
[files] |
| 38 |
.br |
| 39 |
\fBsfdp\fR |
| 40 |
[\fIoptions\fP] |
| 41 |
[files] |
| 42 |
.br |
| 43 |
\fBpatchwork\fR |
| 44 |
[\fIoptions\fP] |
| 45 |
[files] |
| 46 |
.br |
| 47 |
\fBosage\fR |
| 48 |
[\fIoptions\fP] |
| 49 |
[files] |
| 50 |
.SH DESCRIPTION |
| 51 |
These are a collection of programs for drawing graphs. |
| 52 |
There is actually only one main program; the specific layout algorithms |
| 53 |
are implemented as plugins. Thus, they largely share all of the same command-line |
| 54 |
options. |
| 55 |
.PP |
| 56 |
.I dot |
| 57 |
draws directed graphs. It works well on directed acyclic graphs and other graphs |
| 58 |
that can be drawn as hierarchies or have a natural ``flow.'' |
| 59 |
.PP |
| 60 |
.I neato |
| 61 |
draws undirected graphs using a ``spring'' model and reducing the related energy (see Kamada and Kawai, |
| 62 |
Information Processing Letters 31:1, April 1989). |
| 63 |
.PP |
| 64 |
.I twopi |
| 65 |
draws graphs using a radial layout (see G. Wills, |
| 66 |
Symposium on Graph Drawing GD'97, September, 1997). |
| 67 |
Basically, one node is chosen as the center and put at the origin. |
| 68 |
The remaining nodes are placed on a sequence of concentric circles |
| 69 |
centered about the origin, each a fixed radial distance from the |
| 70 |
previous circle. |
| 71 |
All nodes distance 1 from the center are placed on the first circle; |
| 72 |
all nodes distance 1 from a node on the first circle are placed on |
| 73 |
the second circle; and so forth. |
| 74 |
.PP |
| 75 |
.I circo |
| 76 |
draws graphs using a circular layout (see |
| 77 |
Six and Tollis, GD '99 and ALENEX '99, and |
| 78 |
Kaufmann and Wiese, GD '02.) |
| 79 |
The tool identifies biconnected components and draws the nodes of |
| 80 |
the component on a circle. The block\(hycutpoint tree |
| 81 |
is then laid out using a recursive radial algorithm. Edge |
| 82 |
crossings within a circle are minimized by placing as many edges on |
| 83 |
the circle's perimeter as possible. |
| 84 |
In particular, if the component is outerplanar, the component will |
| 85 |
have a planar layout. |
| 86 |
If a node belongs to multiple non\(hytrivial biconnected components, |
| 87 |
the layout puts the node in one of them. By default, this is the first |
| 88 |
non\(hytrivial component found in the search from the root component. |
| 89 |
.PP |
| 90 |
.I fdp |
| 91 |
draws undirected graphs using a ``spring'' model. It relies on a |
| 92 |
force\(hydirected approach in the spirit of Fruchterman and Reingold |
| 93 |
(cf. Software\(hyPractice & Experience 21(11), 1991, pp. 1129\(hy1164). |
| 94 |
.PP |
| 95 |
.I sfdp |
| 96 |
also draws undirected graphs using the ``spring'' model described |
| 97 |
above, but it uses a multi-scale approach to produce layouts |
| 98 |
of large graphs in a reasonably short time. |
| 99 |
.PP |
| 100 |
.I patchwork |
| 101 |
draws the graph as a squarified treemap (see M. Bruls et al., ``Squarified treemaps'', Proc. Joint Eurographics |
| 102 |
and IEEE TCVG Symp. on Visualization, 2000, pp. 33-42). The clusters of the graph are used to |
| 103 |
specify the tree. |
| 104 |
.PP |
| 105 |
.I osage |
| 106 |
draws the graph using its cluster structure. For a given cluster, each of its subclusters is laid out internally. |
| 107 |
Then the subclusters, plus any remaining nodes, are repositioned based on the cluster's \fBpack\fP and \fBpackmode\fP |
| 108 |
attributes. |
| 109 |
.SH OUTPUT FORMATS |
| 110 |
Graphviz uses an extensible plugin mechanism for its output renderers, |
| 111 |
so to see what output formats your installation of dot supports |
| 112 |
you can use ``dot \-T:'' and check the warning message. |
| 113 |
Also, The plugin mechanism supports multiple implementations |
| 114 |
of the output formats, allowing variations in the renderers and formatters. |
| 115 |
To see what variants are available for a particular output format, use, for example: ``dot \-Tpng:'' |
| 116 |
and to force a particular variant, use, for example: ``dot \-Tpng:gd'' |
| 117 |
.P |
| 118 |
Traditionally, Graphviz supports the following: |
| 119 |
.br |
| 120 |
\fB\-Tdot\fP (Dot format containing layout information), |
| 121 |
.br |
| 122 |
\fB\-Txdot\fP (Dot format containing complete layout information), |
| 123 |
.br |
| 124 |
\fB\-Tps\fP (PostScript), |
| 125 |
.br |
| 126 |
\fB\-Tpdf\fP (PDF), |
| 127 |
.br |
| 128 |
\fB\-Tsvg\fP \fB\-Tsvgz\fP (Structured Vector Graphics), |
| 129 |
.br |
| 130 |
\fB\-Tfig\fP (XFIG graphics), |
| 131 |
.br |
| 132 |
\fB\-Tpng\fP (png bitmap graphics), |
| 133 |
.br |
| 134 |
\fB\-Tgif\fP (gif bitmap graphics), |
| 135 |
.br |
| 136 |
\fB\-Tjpg\fP \fB\-Tjpeg\fP (jpeg bitmap graphics), |
| 137 |
.br |
| 138 |
\fB\-Tjson\fP (xdot information encoded in JSON), |
| 139 |
.br |
| 140 |
\fB\-Timap\fP (imagemap files for httpd servers for each node or edge |
| 141 |
that has a non\(hynull \fBhref\fP attribute.), |
| 142 |
.br |
| 143 |
\fB\-Tcmapx\fP (client\(hyside imagemap for use in html and xhtml). |
| 144 |
.br |
| 145 |
Additional less common or more special\(hypurpose output formats |
| 146 |
can be found at https://www.graphviz.org/doc/info/output.html. |
| 147 |
.PP |
| 148 |
Alternative plugins providing support for a given output format |
| 149 |
can be found from the error message resulting from appending a ':' to the format. e.g. \fB\-Tpng:\fP |
| 150 |
The first plugin listed is always the default. |
| 151 |
.PP |
| 152 |
The \fB\-P\fP switch can be used to produce a graph of all output variants supported by plugins in the local installation of graphviz. |
| 153 |
.SH GRAPH FILE LANGUAGE |
| 154 |
Here is a synopsis of the graph file language, normally using the extension \fB.gv\fR, for graphs: |
| 155 |
.PP |
| 156 |
[\fBstrict\fR] (\fBgraph\fR|\fBdigraph\fR) \fIname\fP { \fIstatement\(hylist\fP }\fR |
| 157 |
.br |
| 158 |
is the top\(hylevel graph. If the graph is \fBstrict\fR, then multiple edges are |
| 159 |
not allowed between the same pairs of nodes. |
| 160 |
If it is a directed graph, indicated by \fBdigraph\fR, |
| 161 |
then the \fIedgeop\fR must be "\->". If it is an undirected \fBgraph\fR |
| 162 |
then the \fIedgeop\fR must be "\-\-". |
| 163 |
.PP |
| 164 |
Statements may be: |
| 165 |
.PP |
| 166 |
\fIname\fB=\fIval\fB;\fR |
| 167 |
.br |
| 168 |
\fBnode [\fIname\fB=\fIval\fB];\fR |
| 169 |
.br |
| 170 |
\fBedge [\fIname\fB=\fIval\fB];\fR |
| 171 |
.br |
| 172 |
Set default graph, node, or edge attribute \fIname\fP to \fIval\fP. |
| 173 |
Any subgraph, node, or edge appearing after this inherits the new |
| 174 |
default attributes. |
| 175 |
.PP |
| 176 |
\fBn0 [\fIname0=val0,name1=val1,...\fB];\fR |
| 177 |
.br |
| 178 |
Creates node \fBn0\fP (if it does not already exist) |
| 179 |
and sets its attributes according to the optional list. |
| 180 |
.PP |
| 181 |
\fBn0 \fIedgeop\fR n1 \fIedgeop\fR \fI...\fB \fIedgeop\fR nn \fB[\fIname0=val0,name1=val1,...\fB];\fR |
| 182 |
.br |
| 183 |
Creates edges between nodes \fBn0\fP, \fBn1\fP, ..., \fBnn\fP and sets |
| 184 |
their attributes according to the optional list. |
| 185 |
Creates nodes as necessary. |
| 186 |
.PP |
| 187 |
[\fBsubgraph \fIname\fB] \fB{ \fIstatement\(hylist \fB}\fR |
| 188 |
.br |
| 189 |
Creates a subgraph. Subgraphs may be used in place |
| 190 |
of \fBn0\fP, ..., \fBnn\fP in the above statements to create edges. |
| 191 |
[\fBsubgraph \fIname\fR] is optional; |
| 192 |
if missing, the subgraph is assigned an internal name. |
| 193 |
.PP |
| 194 |
The language accepts both C\(hystyle comments /*C...*/ or //... |
| 195 |
.PP |
| 196 |
Attribute names and values are ordinary (C\(hystyle) strings. |
| 197 |
The following sections describe attributes that control graph layout. |
| 198 |
.PP |
| 199 |
A more complete description of the language can be found at |
| 200 |
https://www.graphviz.org/doc/info/lang.html. |
| 201 |
.SH "GRAPH, NODE AND EDGE ATTRIBUTES" |
| 202 |
Graphviz uses the \fIname\fP=\fIvalue\fP attributes, attached to graphs, subgraphs, |
| 203 |
nodes and edges, to tailor the layout and rendering. We list the more prominent |
| 204 |
attributes below. The complete list is available at |
| 205 |
https://www.graphviz.org/doc/info/attrs.html. |
| 206 |
.SH " Attributes Common to Nodes, Edges, Clusters and Graphs" |
| 207 |
\fBhref=\fIurl\fR the default url for image map files; in PostScript files, |
| 208 |
the base URL for all relative URLs, as recognized by Acrobat Distiller |
| 209 |
3.0 and up. |
| 210 |
.PP |
| 211 |
\fBURL=\fIurl\fR (``URL'' is a synonym for ``href.'') |
| 212 |
.PP |
| 213 |
\fBfontcolor=\fIcolorvalue\fR sets the label text color. |
| 214 |
.PP |
| 215 |
A \fIcolorvalue\fP may be "\fIh,s,v\fB"\fR (hue, saturation, brightness) |
| 216 |
floating point numbers between 0 and 1, or an X11 color name such as |
| 217 |
\fBwhite, black, red, green, blue, yellow, magenta,\fR or \fBcyan\fR, |
| 218 |
or a "\fI#rrggbb" (red, green, blue, 2 hex characters each) value. |
| 219 |
See https://www.graphviz.org/doc/info/attrs.html#k:color and |
| 220 |
https://www.graphviz.org/doc/info/colors.html for further details. |
| 221 |
.PP |
| 222 |
\fBfontsize=\fIn\fR sets the label type size to \fIn\fP points. |
| 223 |
.PP |
| 224 |
\fBfontname=\fIname\fR sets the label font family name. |
| 225 |
.PP |
| 226 |
\fBlabel=\fItext\fR where \fItext\fP may include escaped newlines |
| 227 |
\\\|n, \\\|l, or \\\|r for center, left, and right justified lines. |
| 228 |
The string '\\G' value will be replaced by the graph name. |
| 229 |
For node labels, the string '\\N' value will be replaced by the node name. |
| 230 |
For edges, |
| 231 |
if the substring '\\T' is found in a label, it will be replaced by the name of the tail node; |
| 232 |
if the substring '\\H' is found in a label, it will be replaced by the name of the head node; |
| 233 |
if the substring '\\E' value is found in a label it will be replaced by: \fItail_node_name\fP\->\fIhead_node_name\fP |
| 234 |
or by: \fItail_node_name\fP\-\-\fIhead_node_name\fP for undirected graphs. |
| 235 |
.PP |
| 236 |
Graphviz also supports special HTML-like labels for constructing complex node |
| 237 |
content. A full\(hydescription of these is given at https://www.graphviz.org/doc/info/shapes.html#html. |
| 238 |
.PP |
| 239 |
If a node has \fBshape=record\fP, the label |
| 240 |
may contain recursive box lists delimited by { | }. |
| 241 |
Port identifiers in labels are set off by angle brackets < >. |
| 242 |
.PP |
| 243 |
.SH " Graph Attributes" |
| 244 |
\fBsize="\fIx,y\fP"\fR specifies the maximum bounding box of drawing in inches. |
| 245 |
.PP |
| 246 |
\fBratio=\fIf\fR sets the aspect ratio to \fIf\fP which may be |
| 247 |
a floating point number, or one of the keywords \fBfill\fP, |
| 248 |
\fBcompress\fP, or \fBauto\fP. |
| 249 |
.PP |
| 250 |
\fBlayout=\fIengine\fR indicates the preferred layout engine (\fBdot\fP, \fBneato\fP, \fBfdp\fP, etc.) overriding the default |
| 251 |
from the basename of the command or the \-K commandline option. |
| 252 |
.PP |
| 253 |
\fBmargin=\fIf\fR sets the page margin (included in the page size). |
| 254 |
.PP |
| 255 |
\fBordering=out\fR constrains order of out\(hyedges in a subgraph |
| 256 |
according to their file sequence. |
| 257 |
.PP |
| 258 |
\fBrotate=90\fR sets landscape mode. |
| 259 |
(\fBorientation=land\fR is backward compatible but obsolete.) |
| 260 |
.PP |
| 261 |
\fBcenter=\fIn\fR a non\(hyzero value centers the drawing on the page. |
| 262 |
.PP |
| 263 |
\fBcolor=\fIcolorvalue\fR sets foreground color (\fBbgcolor\fP for background). |
| 264 |
.PP |
| 265 |
\fBoverlap=\fImode\fR. This specifies what algorithm should do if |
| 266 |
any nodes overlap. If mode is \fBfalse\fP, the program uses the Prism algorithm |
| 267 |
to adjust the nodes to eliminate overlaps. If mode is \fBscale\fP, |
| 268 |
the layout is uniformly scaled up, preserving node sizes, until nodes no |
| 269 |
longer overlap. The latter technique removes overlaps while preserving |
| 270 |
symmetry and structure, while the former removes overlaps more compactly |
| 271 |
but destroys symmetries. |
| 272 |
If mode is \fBtrue\fP (the default), no repositioning is done. |
| 273 |
Since the \fBdot\fP algorithm always produces a layout with no node overlaps, this |
| 274 |
attribute is only useful with other layouts. |
| 275 |
.PP |
| 276 |
\fBstylesheet=\fI"file.css"\fR includes a reference to a stylesheet |
| 277 |
in \-Tsvg and \-Tsvgz outputs. Ignored by other formats. |
| 278 |
.PP |
| 279 |
\fBsplines\fR If set to \fBtrue\fR, edges are |
| 280 |
drawn as splines. |
| 281 |
If set to \fBpolyline\fR, edges are |
| 282 |
drawn as polylines. |
| 283 |
If set to \fBortho\fR, edges are |
| 284 |
drawn as orthogonal polylines. |
| 285 |
In all of these cases, the nodes must not overlap. |
| 286 |
If \fBsplines=\fBfalse\fR or \fBsplines=\fBline\fR, edges are |
| 287 |
drawn as line segments. |
| 288 |
The default is \fBtrue\fR for dot, and \fBfalse\fR for all other layouts. |
| 289 |
|
| 290 |
.PP |
| 291 |
\fB(dot\(hyspecific attributes)\fR |
| 292 |
.br |
| 293 |
.PP |
| 294 |
\fBnodesep=\fIf\fR sets the minimum separation between nodes. |
| 295 |
.PP |
| 296 |
\fBranksep=\fIf\fR sets the minimum separation between ranks. |
| 297 |
.PP |
| 298 |
\fBrankdir=LR|RL|BT\fR requests a left\(hyto\(hyright, right\(hyto\(hyleft, or bottom\(hyto\(hytop, drawing. |
| 299 |
.PP |
| 300 |
\fBrank=same\fR (or \fBmin\fP or \fBmax\fP) in a subgraph |
| 301 |
constrains the rank assignment of its nodes. If a subgraph's |
| 302 |
name has the prefix \fBcluster\fP, its nodes are drawn in |
| 303 |
a distinct rectangle of the layout. Clusters may be nested. |
| 304 |
|
| 305 |
.PP |
| 306 |
\fB(neato\(hyspecific attributes)\fR |
| 307 |
.br |
| 308 |
\fBmode=\fIval\fR. Algorithm for minimizing energy in the layout. By default, |
| 309 |
\fBneato\fR uses stress majorization. If \fBmode=KK\fP, it uses a version of |
| 310 |
gradient descent. |
| 311 |
.PP |
| 312 |
\fBmodel=\fIval\fR. The \fBneato\fP model computes the desired distances between |
| 313 |
all pairs of vertices. By default, it uses the length of the shortest path. If \fBmodel\fP |
| 314 |
is set to \fBcircuit\fP, a circuit-resistance model is used. |
| 315 |
If \fBmodel\fP is set to \fBsubset\fP, it uses a model whereby the edge length is the number |
| 316 |
of nodes that are neighbors of exactly one of the edge's vertices. |
| 317 |
.PP |
| 318 |
\fBstart=\fIval\fR. Requests random initial placement and seeds |
| 319 |
the random number generator. If \fIval\fP is not an integer, |
| 320 |
the process ID or current time is used as the seed. |
| 321 |
.PP |
| 322 |
\fBepsilon=\fIn\fR. Sets the cutoff for the solver. |
| 323 |
The default is 0.1. |
| 324 |
|
| 325 |
.PP |
| 326 |
\fB(twopi\(hyspecific attributes)\fR |
| 327 |
.br |
| 328 |
\fBroot=\fIctr\fR. This specifies the node to be used as the center of |
| 329 |
the layout. If not specified, \fItwopi\fP will randomly pick one of the |
| 330 |
nodes that are furthest from a leaf node, where a leaf node is a node |
| 331 |
of degree 1. If no leaf nodes exists, an arbitrary node is picked as center. |
| 332 |
.PP |
| 333 |
\fBranksep=\fIval\fR. Specifies the radial distance in inches between |
| 334 |
the sequence of rings. The default is 0.75. |
| 335 |
|
| 336 |
.PP |
| 337 |
\fB(circo\(hyspecific attributes)\fR |
| 338 |
.br |
| 339 |
\fBroot=\fInodename\fR. Specifies the name of a node occurring in the |
| 340 |
root block. If the graph is disconnected, the \fBroot\fP node attribute |
| 341 |
can be used to specify additional root blocks. |
| 342 |
.PP |
| 343 |
\fBmindist=\fIvalue\fR. Sets the minimum separation between all nodes. If not |
| 344 |
specified then \fIcirco\fP uses a default value of 1.0. |
| 345 |
|
| 346 |
.PP |
| 347 |
\fB(fdp\(hyspecific attributes)\fR |
| 348 |
.br |
| 349 |
\fBK=\fIval\fR. Sets the default ideal node separation |
| 350 |
in the layout. |
| 351 |
.PP |
| 352 |
\fBmaxiter=\fIval\fR. Sets the maximum number of iterations used to |
| 353 |
layout the graph. |
| 354 |
.PP |
| 355 |
\fBstart=\fIval\fR. Adjusts the random initial placement of nodes |
| 356 |
with no specified position. If \fIval\fP is an integer, |
| 357 |
it is used as the seed for the random number generator. |
| 358 |
If \fIval\fP is not an integer, a random system\(hygenerated integer, |
| 359 |
such as the process ID or current time, is used as the seed. |
| 360 |
.PP |
| 361 |
|
| 362 |
.SH " Node Attributes" |
| 363 |
.PP |
| 364 |
\fBheight=\fId\fR or \fBwidth=\fId\fR sets minimum height or width. |
| 365 |
Adding \fBfixedsize=true\fP forces these to be the actual size |
| 366 |
(text labels are ignored). |
| 367 |
.PP |
| 368 |
\fBshape=\fIbuiltin_polygon\fR record epsf |
| 369 |
.br |
| 370 |
\fIbuiltin_polygon\fR can be such values as \fBplaintext, ellipse, oval, circle, egg, |
| 371 |
triangle, box, diamond, trapezium, parallelogram, house, hexagon, octagon, |
| 372 |
note, tab, box3d, or component,\fR, among others. |
| 373 |
(Polygons are defined or modified by the following node attributes: |
| 374 |
\fBregular\fR, \fBperipheries\fR, \fBsides\fR, \fBorientation\fR, |
| 375 |
\fBdistortion\fR and \fBskew\fR.) \fBepsf\fR uses the node's |
| 376 |
\fBshapefile\fR attribute as the path name of an external |
| 377 |
EPSF file to be automatically loaded for the node shape. |
| 378 |
.PP |
| 379 |
See https://www.graphviz.org/doc/info/shapes.html for a complete description |
| 380 |
of node shapes. |
| 381 |
.PP |
| 382 |
\fBcolor=\fIcolorvalue\fR sets the outline color, and the default fill color |
| 383 |
if style=filled and \fBfillcolor\fR is not specified. |
| 384 |
.PP |
| 385 |
\fBfillcolor=\fIcolorvalue\fR sets the fill color |
| 386 |
when style=filled. If not specified, the fillcolor when style=filled defaults |
| 387 |
to be the same as the outline color. |
| 388 |
.PP |
| 389 |
\fBstyle=filled solid dashed dotted bold invis\fP |
| 390 |
.PP |
| 391 |
\fBxlabel=\fI"text"\fR specifies a label that will be place near, but outside, |
| 392 |
of a node. The normal \fBlabel\fP string is placed within the node shape. |
| 393 |
.PP |
| 394 |
\fBtarget=\fI"target"\fR is a target string for client\(hyside imagemaps |
| 395 |
and SVG, effective when nodes have a URL. |
| 396 |
The target string is used to determine which window of the browser is used |
| 397 |
for the URL. Setting it to "_graphviz" will open a new window if it doesn't |
| 398 |
already exist, or reuse it if it does. |
| 399 |
If the target string is empty, the default, |
| 400 |
then no target attribute is included in the output. |
| 401 |
The substrings '\\N' and '\\G' are substituted in the same manner as |
| 402 |
for the node label attribute. |
| 403 |
Additionally the substring '\\L' is substituted with the node label string. |
| 404 |
.PP |
| 405 |
\fBtooltip=\fI"text"\fR is a tooltip string for client\(hyside imagemaps |
| 406 |
and SVG, effective when nodes have a URL. The tooltip string defaults to be the |
| 407 |
same as the label string, but this attribute permits nodes without |
| 408 |
labels to still have tooltips thus permitting denser graphs. |
| 409 |
The substrings '\\N' and '\\G' are substituted in the same manner as |
| 410 |
for the node label attribute. |
| 411 |
Additionally the substring '\\L' is substituted with the node label string. |
| 412 |
.PP |
| 413 |
The following attributes apply only to polygon shape nodes: |
| 414 |
.PP |
| 415 |
\fBregular=\fIn\fR if \fIn\fR is non\(hyzero then the polygon is made |
| 416 |
regular, i.e. symmetric about the x and y axis, otherwise the |
| 417 |
polygon takes on the aspect ratio of the label. |
| 418 |
\fIbuiltin_polygons\fR that are not already regular are made regular |
| 419 |
by this attribute. |
| 420 |
\fIbuiltin_polygons\fR that are already regular are not affected (i.e. |
| 421 |
they cannot be made asymmetric). |
| 422 |
.PP |
| 423 |
\fBperipheries=\fIn\fR sets the number of periphery lines drawn around |
| 424 |
the polygon. This value supersedes the number of periphery lines |
| 425 |
of \fIbuiltin_polygons\fR. |
| 426 |
.PP |
| 427 |
\fBsides=\fIn\fR sets the number of sides to the polygon. \fIn\fR<3 |
| 428 |
results in an ellipse. |
| 429 |
This attribute is ignored by \fIbuiltin_polygons\fR. |
| 430 |
.PP |
| 431 |
\fBorientation=\fIf\fR sets the orientation of the first apex of the |
| 432 |
polygon counterclockwise from the vertical, in degrees. |
| 433 |
\fIf\fR may be a floating point number. |
| 434 |
The orientation of labels is not affected by this attribute. |
| 435 |
This attribute is added to the initial orientation of \fIbuiltin_polygons.\fR |
| 436 |
.PP |
| 437 |
\fBdistortion=\fIf\fR sets the amount of broadening of the top and |
| 438 |
narrowing of the bottom of the polygon (relative to its orientation). |
| 439 |
Floating point values between \-1 and +1 are suggested. |
| 440 |
This attribute is ignored by \fIbuiltin_polygons\fR. |
| 441 |
.PP |
| 442 |
\fBskew=\fIf\fR sets the amount of right\(hydisplacement of the top and |
| 443 |
left\(hydisplacement of the bottom of the polygon (relative to its |
| 444 |
orientation). |
| 445 |
Floating point values between \-1 and +1 are suggested. |
| 446 |
This attribute is ignored by \fIbuiltin_polygons\fR. |
| 447 |
|
| 448 |
.PP |
| 449 |
\fB(circo\(hyspecific attributes)\fR |
| 450 |
.br |
| 451 |
\fBroot=\fItrue/false\fR. This specifies that the block containing the given |
| 452 |
node be treated as the root of the spanning tree in the layout. |
| 453 |
|
| 454 |
.PP |
| 455 |
\fB(neato\(hy and fdp\(hyspecific attributes)\fR |
| 456 |
.br |
| 457 |
\fBpin=\fIval\fR. If \fIval\fR is \fBtrue\fP, the node will remain at |
| 458 |
its initial position. |
| 459 |
|
| 460 |
.SH " Edge Attributes" |
| 461 |
\fBweight=\fIval\fR where \fIval\fP is the cost of the edge. |
| 462 |
For \fBdot\fP, weights must be non-negative integers. |
| 463 |
Values greater than 1 tend to shorten the edge; weight 0 flat |
| 464 |
edges are ignored for ordering nodes. |
| 465 |
In \fBtwopi\fP, a weight of 0 will cause the edge to be ignored in constructing |
| 466 |
the underlying spanning tree. For \fBneato\fP and \fBfdp\fP, a heavier weight will |
| 467 |
put more emphasis on the algorithm achieving an edge length closer to that specified by |
| 468 |
the edge's \fBlen\fP attribute. |
| 469 |
.PP |
| 470 |
\fBstyle=solid dashed dotted bold invis\fP |
| 471 |
.PP |
| 472 |
\fBcolor=\fIcolorvalue\fR sets the line color for edges. |
| 473 |
.PP |
| 474 |
\fBcolor=\fIcolorvaluelist\fR a ':' separated list of \fIcolorvalue\fR creates |
| 475 |
parallel edges, one edge for each color. |
| 476 |
.PP |
| 477 |
\fBdir=forward back both none\fP controls arrow direction. |
| 478 |
.PP |
| 479 |
\fBtailclip,headclip=false\fP disables endpoint shape clipping. |
| 480 |
.PP |
| 481 |
\fBtarget=\fI"text"\fR is a target string for client\(hyside imagemaps |
| 482 |
and SVG, effective when edges have a URL. |
| 483 |
If the target string is empty, the default, |
| 484 |
then no target attribute is included in the output. |
| 485 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 486 |
for the edge label attribute. |
| 487 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 488 |
.PP |
| 489 |
\fBtooltip=\fI"text"\fR is a tooltip string for client\(hyside imagemaps |
| 490 |
effective when edges have a URL. The tooltip string defaults to be the |
| 491 |
same as the edge label string. |
| 492 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 493 |
for the edge label attribute. |
| 494 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 495 |
.PP |
| 496 |
\fBarrowhead,arrowtail=none, normal, inv, dot, odot, invdot, invodot, |
| 497 |
tee, empty, invempty, open, halfopen, diamond, odiamond, box, obox, crow\fP. |
| 498 |
Specifies the shape of the glyph occurring where the edge touches the head |
| 499 |
or tail node, respectively. Note that this only specifies the shape. The \fBdir\fP |
| 500 |
attribute determines whether or not the glyph is drawn. |
| 501 |
.PP |
| 502 |
\fBarrowsize=\fIval\fR specifies a multiplicative scale factor for the size of the arrowhead. |
| 503 |
inv_length=6,inv_width=7,dot_radius=2) |
| 504 |
.PP |
| 505 |
\fBheadlabel,taillabel=\fItext\fR for labels appearing near the head and tail nodes of an edge. |
| 506 |
\fBlabelfontcolor\fP, \fBlabelfontname\fP, \fBlabelfontsize\fP |
| 507 |
for head and tail labels. |
| 508 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 509 |
for the edge label attribute. |
| 510 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 511 |
.PP |
| 512 |
\fBheadhref=\fI"url"\fR sets the url for the head port in imagemap, PostScript and SVG files. |
| 513 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 514 |
for the edge label attribute. |
| 515 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 516 |
.PP |
| 517 |
\fBheadURL=\fI"url"\fR (\fBheadURL\fP is a synonym for \fBheadhref\fP.) |
| 518 |
.PP |
| 519 |
\fBheadtarget=\fI"headtarget"\fR is a target string for client\(hyside imagemaps |
| 520 |
and SVG, effective when edge heads have a URL. |
| 521 |
The headtarget string is used to determine which window of the browser is used |
| 522 |
for the URL. If the headtarget string is empty, the default, |
| 523 |
then headtarget defaults to the same value as target for the edge. |
| 524 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 525 |
for the edge label attribute. |
| 526 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 527 |
.PP |
| 528 |
\fBheadtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps |
| 529 |
effective when head ports have a URL. The tooltip string defaults to be the |
| 530 |
same as the headlabel string. |
| 531 |
The substrings '\\T', '\\H', and '\\E' are substituted in the same manner as |
| 532 |
for the edge label attribute. |
| 533 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 534 |
.PP |
| 535 |
\fBtailhref=\fI"url"\fR sets the url for the tail port in imagemap, PostScript and SVG files. |
| 536 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 537 |
for the edge label attribute. |
| 538 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 539 |
.PP |
| 540 |
\fBtailURL=\fI"url"\fR (\fBtailURL\fP is a synonym for \fBtailhref\fP.) |
| 541 |
.PP |
| 542 |
\fBtailtarget=\fI"tailtarget"\fR is a target string for client\(hyside imagemaps |
| 543 |
and SVG, effective when edge tails have a URL. |
| 544 |
The tailtarget string is used to determine which window of the browser is used |
| 545 |
for the URL. If the tailtarget string is empty, the default, |
| 546 |
then tailtarget defaults to the same value as target for the edge. |
| 547 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 548 |
for the edge label attribute. |
| 549 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 550 |
.PP |
| 551 |
\fBtailtooltip=\fI"tooltip"\fR is a tooltip string for client\(hyside imagemaps |
| 552 |
effective when tail ports have a URL. The tooltip string defaults to be the |
| 553 |
same as the taillabel string. |
| 554 |
The substrings '\\T', '\\H', '\\E' and '\\G' are substituted in the same manner as |
| 555 |
for the edge label attribute. |
| 556 |
Additionally the substring '\\L' is substituted with the edge label string. |
| 557 |
.PP |
| 558 |
\fBlabeldistance\fP and \fBlabelangle\fP (in degrees CCW) specify the placement of |
| 559 |
head and tail labels. |
| 560 |
.PP |
| 561 |
\fBdecorate\fP draws line from edge to label. |
| 562 |
.PP |
| 563 |
\fBsamehead,sametail\fP aim edges having the same value to the |
| 564 |
same port, using the average landing point. |
| 565 |
|
| 566 |
.PP |
| 567 |
\fB(dot\(hyspecific attributes)\fR |
| 568 |
.br |
| 569 |
\fBconstraint=false\fP causes an edge to be ignored for rank assignment. |
| 570 |
.PP |
| 571 |
\fBminlen=\fIn\fR where \fIn\fP is an integer factor that applies |
| 572 |
to the edge length (ranks for normal edges, or minimum node separation |
| 573 |
for flat edges). |
| 574 |
.PP |
| 575 |
\fBxlabel=\fI"text"\fR Edge labels in \fBdot\fP are treated as special types of nodes, |
| 576 |
with space allocated for them during node layout. This can sometimes deform the edge |
| 577 |
routing. If an \fBxlabel\fP is used instead, the label is placed after all nodes and edges |
| 578 |
have been positioned. In turn, this may mean that there is some overlap among the labels. |
| 579 |
.PP |
| 580 |
\fB(neato and fdp\(hyspecific attributes)\fR |
| 581 |
.br |
| 582 |
\fBlen=\fIf\fR sets the optimal length of an edge. |
| 583 |
The default is 1.0. |
| 584 |
.PP |
| 585 |
.SH "COMMAND\(hyLINE OPTIONS" |
| 586 |
\fB\-G\fP sets a default graph attribute. |
| 587 |
.br |
| 588 |
\fB\-N\fP sets a default node attribute. |
| 589 |
.br |
| 590 |
\fB\-E\fP sets a default edge attribute. |
| 591 |
Example: \fB\-Gsize="7,8" \-Nshape=box \-Efontsize=8\fR |
| 592 |
.PP |
| 593 |
\fB\-\-filepath=\fIpath\fR uses \fIpath\fR as a prefix for locating externally |
| 594 |
referenced files. For example, using \fB\-\-filepath=bar/baz\fR would cause |
| 595 |
\fBfoo.png\fR in \fBimage="foo.png"\fR to be looked for on disk as |
| 596 |
\fBbar/baz/foo.png\fR. This overrides any \fBimagepath\fR set either on the |
| 597 |
command line or as an attribute within the input graph source. |
| 598 |
.PP |
| 599 |
\fB\-l\fIfile\fR loads custom PostScript library files. |
| 600 |
Usually these define custom shapes or styles. |
| 601 |
If \fB\-l\fP is given by itself, the standard library is omitted. |
| 602 |
.PP |
| 603 |
\fB\-T\fIlang\fR sets the output language as described above. |
| 604 |
|
| 605 |
.PP |
| 606 |
\fB\-n\fR[\fB1\fR|\fB2\fR] (no\(hyop) |
| 607 |
If set, neato assumes nodes have already been positioned and all |
| 608 |
nodes have a pos attribute giving the positions. |
| 609 |
It then performs an optional adjustment to remove node\(hynode overlap, |
| 610 |
depending on the value of the overlap attribute, |
| 611 |
computes the edge layouts, depending on the value of the \fBsplines\fR attribute, |
| 612 |
and emits the graph in the appropriate format. |
| 613 |
If num is supplied, the following actions occur: |
| 614 |
.nf |
| 615 |
num = 1 |
| 616 |
.fi |
| 617 |
Equivalent to \-n. |
| 618 |
.nf |
| 619 |
num > 1 |
| 620 |
.fi |
| 621 |
Use node positions as specified, |
| 622 |
with no adjustment to remove node\(hynode overlaps, |
| 623 |
and use any edge layouts already specified by the pos attribute. |
| 624 |
neato computes an edge layout for any edge that does not have a \fBpos\fP attribute. |
| 625 |
As usual, edge layout is guided by the \fBsplines\fR attribute. |
| 626 |
.nf |
| 627 |
num = 3 |
| 628 |
.fi |
| 629 |
Also fit ends of edges to nodes' borders. |
| 630 |
.PP |
| 631 |
\fB\-K\fIlayout\fR override the default layout engine implied by the command name. |
| 632 |
.PP |
| 633 |
\fB\-O\fP automatically generate output filenames based on the input filename and the \-T format. |
| 634 |
.PP |
| 635 |
\fB\-P\fP generate a graph of the currently available plugins. |
| 636 |
.PP |
| 637 |
\fB\-v\fP (verbose) prints various information useful for debugging. |
| 638 |
.PP |
| 639 |
\fB\-c\fP configure plugins. |
| 640 |
.PP |
| 641 |
\fB\-q\fIlevel\fR set level of message suppression. The default is 1. |
| 642 |
.PP |
| 643 |
\fB\-s\fIfscale\fR scale input by \fIfscale\fP, the default is 72. |
| 644 |
.PP |
| 645 |
\fB\-y\fR invert y coordinate in output. |
| 646 |
.PP |
| 647 |
\fB\-o\fIfile\fR write output to \fIfile\fP. |
| 648 |
.PP |
| 649 |
\fB\-x\fP reduce graph. |
| 650 |
.PP |
| 651 |
\fB\-Lg\fP don't use grid. |
| 652 |
.PP |
| 653 |
\fB\-LO\fP use old attractive force. |
| 654 |
.PP |
| 655 |
\fB\-Ln\fIi\fR set number of iterations to \fIi\fP. |
| 656 |
.PP |
| 657 |
\fB\-LU\fIi\fR set unscaled factor to \fIi\fP. |
| 658 |
.PP |
| 659 |
\fB\-LC\fIv\fR set overlap expansion factor to \fIv\fP. |
| 660 |
.PP |
| 661 |
\fB\-LT\fR[*]\fIv\fR set temperature (temperature factor) to \fIv\fP. |
| 662 |
.PP |
| 663 |
\fB\-V\fP (version) prints version information and exits. |
| 664 |
.PP |
| 665 |
\fB\-?\fP prints the usage and exits. |
| 666 |
.PP |
| 667 |
A complete description of the available command\(hyline options can be found at |
| 668 |
https://www.graphviz.org/doc/info/command.html. |
| 669 |
.SH "EXAMPLES" |
| 670 |
.nf |
| 671 |
digraph test123 { |
| 672 |
a \-> b \-> c; |
| 673 |
a \-> {x y}; |
| 674 |
b [shape=box]; |
| 675 |
c [label="hello\\\|nworld",color=blue,fontsize=24, |
| 676 |
fontname="Palatino\-Italic",fontcolor=red,style=filled]; |
| 677 |
a \-> z [label="hi", weight=100]; |
| 678 |
x \-> z [label="multi\-line\\\|nlabel"]; |
| 679 |
edge [style=dashed,color=red]; |
| 680 |
b \-> x; |
| 681 |
{rank=same; b x} |
| 682 |
} |
| 683 |
.fi |
| 684 |
.PP |
| 685 |
.nf |
| 686 |
graph test123 { |
| 687 |
a \-\- b \-\- c; |
| 688 |
a \-\- {x y}; |
| 689 |
x \-\- c [w=10.0]; |
| 690 |
x \-\- y [w=5.0,len=3]; |
| 691 |
} |
| 692 |
.fi |
| 693 |
.SH "CAVEATS" |
| 694 |
Edge splines can overlap unintentionally. |
| 695 |
.PP |
| 696 |
Flat edge labels are slightly broken. |
| 697 |
Intercluster edge labels are totally broken. |
| 698 |
.PP |
| 699 |
Because unconstrained optimization is employed, node boxes can |
| 700 |
possibly overlap or touch unrelated edges. All existing |
| 701 |
spring embedders seem to have this limitation. |
| 702 |
.PP |
| 703 |
Apparently reasonable attempts to pin nodes or adjust edge lengths |
| 704 |
and weights can cause instability. |
| 705 |
.SH AUTHORS |
| 706 |
Stephen C. North <[email protected]> |
| 707 |
.br |
| 708 |
Emden R. Gansner <[email protected]> |
| 709 |
.br |
| 710 |
John C. Ellson <[email protected]> |
| 711 |
.br |
| 712 |
Yifan Hu <[email protected]> |
| 713 |
.PP |
| 714 |
The bitmap driver (PNG, GIF etc) is by Thomas Boutell, <http://www.boutell.com/gd> |
| 715 |
.PP |
| 716 |
The Truetype font renderer is from |
| 717 |
the Freetype Project (David Turner, Robert Wilhelm, and Werner Lemberg) |
| 718 |
(who can be contacted at freetype\[email protected]\-muenchen.de). |
| 719 |
.SH "SEE ALSO" |
| 720 |
This man page contains only a small amount of the information related |
| 721 |
to the Graphviz layout programs. The most complete information can be |
| 722 |
found at https://www.graphviz.org/documentation/, especially in the |
| 723 |
on\(hyline reference pages. Most of these documents are also available in the |
| 724 |
\fIdoc\fP and \fIdoc/info\fP subtrees in the source and binary distributions. |
| 725 |
.PP |
| 726 |
.BR tcldot (n), xcolors (1), libcgraph (3). |
| 727 |
.PP |
| 728 |
E. R. Gansner, S. C. North, K. P. Vo, "DAG \(hy A Program to Draw Directed Graphs", Software \(hy Practice and Experience 17(1), 1988, pp. 1047\(hy1062. |
| 729 |
.br |
| 730 |
E. R. Gansner, E. Koutsofios, S. C. North, K. P. Vo, "A Technique for Drawing Directed Graphs," IEEE Trans. on Soft. Eng. 19(3), 1993, pp. 214\(hy230. |
| 731 |
.br |
| 732 |
S. North and E. Koutsofios, "Applications of graph visualization", |
| 733 |
Graphics Interface 94, pp. 234\(hy245. |
| 734 |
.br |
| 735 |
E. R. Gansner and E. Koutsofios and S. C. North, "Drawing Graphs with dot," |
| 736 |
Available at https://www.graphviz.org/pdf/dotguide.pdf. |
| 737 |
.br |
| 738 |
S. C. North, "NEATO User's Manual". |
| 739 |
Available https://www.graphviz.org/pdf/neatoguide.pdf. |
| 740 |
.br |
| 741 |
E. R. Gansner and Y. Hu, "Efficient, Proximity-Preserving Node Overlap Removal", |
| 742 |
J. Graph Algorithms Appl., 14(1) pp. 53\(hy74, 2010. |
| 743 |
.SH "NOTES" |
| 744 |
On non-Windows platforms, sending \fBSIGUSR1\fR to Graphviz can be used to |
| 745 |
toggle on and off some extra points reporting in the neatogen code. |