| 1 |
# Graphviz attributes |
| 2 |
# Each item consist of a header line, followed by a description in HTML. |
| 3 |
# |
| 4 |
# The header line has the format |
| 5 |
# :name:used_by:types[:dflt[:minv]]; [notes] |
| 6 |
# where |
| 7 |
# name has the format name1[/namei]*[ notes] |
| 8 |
# the note can be used as a comment |
| 9 |
# |
| 10 |
# used_by is a string consisting of G,C,N,E, indicating that the attribute |
| 11 |
# applies to graphs, clusters, nodes and edges, respectively. |
| 12 |
# |
| 13 |
# types has the format type[/typei]* |
| 14 |
# type can be int, bool, string, double, or a special <typename>. |
| 15 |
# In the last case, we assume there is an entry for <typename> in |
| 16 |
# the types file. |
| 17 |
# |
| 18 |
# dflt has the format dflt[/dflti]* |
| 19 |
# dflt gives a description of the default value of the attribute. |
| 20 |
# It can contain arbitrary text but ':' must be preceded by a space. |
| 21 |
# |
| 22 |
# minv has the format min[/mini]* |
| 23 |
# minv gives a description of the minimum value of the attribute. |
| 24 |
# It can contain arbitrary text. |
| 25 |
# |
| 26 |
# the notes field, if present, consists of a comma-separated list of: |
| 27 |
# |
| 28 |
# bitmap cmap map ps svg - attribute limited to specified output formats |
| 29 |
# dot neato twopi circo fdp sfdp - attribute limited to specified layouts |
| 30 |
# notdot - attribute use in all layouts but dot |
| 31 |
# write - attribute is write-only |
| 32 |
# obsolete - attribute is obsolete |
| 33 |
# |
| 34 |
# Obviously, for any field which allows multiple subfields separated by '/' |
| 35 |
# the subfields cannot contain the '/' character. |
| 36 |
# |
| 37 |
# In the summary table, attributes are anchored with a:<name>. |
| 38 |
# In the description list, attributes are anchored with d:<name>. |
| 39 |
# There can be more than one item with the same name. |
| 40 |
# The attributes are alphabetized on output. |
| 41 |
# |
| 42 |
# As this is processed by a shell script, and then the web page generator, |
| 43 |
# the special character '\' can cause problems. When used as a literal, use |
| 44 |
# the HTML encoding \ to avoid problems. |
| 45 |
# |
| 46 |
:_background:G:string:<none>; |
| 47 |
A string in the <A HREF=output.html#d:xdot>xdot format</A> specifying an arbitrary background. |
| 48 |
During rendering, the canvas is first filled as described in the |
| 49 |
<A href=#d:bgcolor>bgcolor attribute</A>. |
| 50 |
Then, if <b>_background</b> is defined, the graphics |
| 51 |
operations described in the string are performed on the canvas. |
| 52 |
:Damping:G:double:0.99:0.0; neato |
| 53 |
Factor damping force motions. On each iteration, a nodes movement |
| 54 |
is limited to this factor of its potential motion. By being less than |
| 55 |
1.0, the system tends to ``cool'', thereby preventing cycling. |
| 56 |
#:Nodefactor:G:double:1.0; |
| 57 |
# Set by attribute, overwritten, unused |
| 58 |
#:Nodesep:G:double:1.0; |
| 59 |
# Set by attribute, overwritten, unused |
| 60 |
:URL:ENGC:escString:<none>; map,postscript,svg |
| 61 |
Hyperlinks incorporated into device-dependent output. |
| 62 |
At present, used in ps2, cmap, i*map and svg formats. |
| 63 |
For all these formats, URLs can be attached to nodes, edges and |
| 64 |
clusters. URL attributes can also be attached to the root graph in ps2, |
| 65 |
cmap and i*map formats. This serves as the base URL for relative URLs in the |
| 66 |
former, and as the default image map file in the latter. |
| 67 |
<P> |
| 68 |
For svg, cmapx and imap output, the active area for a node is its |
| 69 |
visible image. |
| 70 |
For example, an unfilled |
| 71 |
node with no drawn boundary will only be active on its label. |
| 72 |
For other output, the active area is its bounding box. |
| 73 |
The active area for a cluster is its bounding box. |
| 74 |
For edges, the active areas are small circles where the edge contacts its head |
| 75 |
and tail nodes. In addition, for svg, cmapx and imap, the active area |
| 76 |
includes a thin polygon approximating the edge. The circles may |
| 77 |
overlap the related node, and the edge URL dominates. |
| 78 |
If the edge has a label, this will also be active. |
| 79 |
Finally, if the edge has a head or tail label, this will also be active. |
| 80 |
<P> |
| 81 |
Note that, for edges, the attributes <A HREF=#d:headURL>headURL</A>, |
| 82 |
<A HREF=#d:tailURL>tailURL</A>, <A HREF=#d:labelURL>labelURL</A> and |
| 83 |
<A HREF=#d:edgeURL>edgeURL</A> allow control of various parts of an |
| 84 |
edge. |
| 85 |
Also note that, if active areas of two edges overlap, it is unspecified |
| 86 |
which area dominates. |
| 87 |
:area:NC:double:1.0:>0; patchwork |
| 88 |
Indicates the preferred area for a node or empty cluster when laid out by patchwork. |
| 89 |
:arrowhead:E:arrowType:normal; |
| 90 |
Style of arrowhead on the head node of an edge. |
| 91 |
This will only appear if the <A HREF=#d:dir>dir</A> attribute |
| 92 |
is "forward" or "both". |
| 93 |
See the <A HREF=#h:undir_note>limitation</A>. |
| 94 |
:arrowsize:E:double:1.0:0.0; |
| 95 |
Multiplicative scale factor for arrowheads. |
| 96 |
:arrowtail:E:arrowType:normal; |
| 97 |
Style of arrowhead on the tail node of an edge. |
| 98 |
This will only appear if the <A HREF=#d:dir>dir</A> attribute |
| 99 |
is "back" or "both". |
| 100 |
See the <A HREF=#h:undir_note>limitation</A>. |
| 101 |
#:aspect:G:aspectType; dot |
| 102 |
#Target aspect ratio (width of the layout divided by the height) |
| 103 |
#of the graph drawing. If unset, dot minimizes the total edge length. |
| 104 |
#For certain graphs, like those with large fan-in or fan-out, this can |
| 105 |
#lead to very wide layouts. Setting <TT>aspect</TT> will cause dot to try |
| 106 |
#to adjust the layout to get an aspect ratio close to that specified |
| 107 |
#by <TT>aspect</TT>. |
| 108 |
##<P> |
| 109 |
##By default, dot will do 5 passes attempting to achieve the desired |
| 110 |
#aspect ratio. For certain graphs, more passes will be needed to get |
| 111 |
#close enough. The <TT>aspect</TT> attribute can also be used to |
| 112 |
#specify the maximum number of passes to try. |
| 113 |
#<P> |
| 114 |
#At present, there is no mechanism for widening a very tall layout. |
| 115 |
#Also, the algorithm doesn't handle clusters, nor disconnected graphs. |
| 116 |
#For the latter case, one can split the pipeline<BR> |
| 117 |
#<TT>ccomps -x | dot | gvpack | neato -n2</TT> |
| 118 |
#to get a similar effect. |
| 119 |
:bb:G:rect; write |
| 120 |
Bounding box of drawing in points. |
| 121 |
:bgcolor:GC:color/colorList:<none>; |
| 122 |
When attached to the root graph, this color is used as the background for |
| 123 |
entire canvas. When a cluster attribute, it is used as the initial |
| 124 |
background for the cluster. If a cluster has a filled |
| 125 |
<A HREF=#d:style>style</A>, the |
| 126 |
cluster's <A HREF=#d:fillcolor>fillcolor</A> will overlay the |
| 127 |
background color. |
| 128 |
<P> |
| 129 |
If the value is a <A HREF=#k:colorList>colorList</A>, a gradient fill is |
| 130 |
used. By default, this is a linear fill; setting <TT>style=radial</TT> will |
| 131 |
cause a radial fill. At present, only two colors are used. If the second |
| 132 |
color (after a colon) is missing, the default color is used for it. |
| 133 |
See also the <A HREF=#d:gradientangle>gradientangle</A> attribute |
| 134 |
for setting the gradient angle. |
| 135 |
<P> |
| 136 |
For certain output formats, such as PostScript, no fill is done for |
| 137 |
the root graph unless |
| 138 |
<b>bgcolor</b> is explicitly set. For bitmap formats, however, |
| 139 |
the bits need to be |
| 140 |
initialized to something, so the canvas is filled with white by default. |
| 141 |
This means that if the bitmap output is included in some other |
| 142 |
document, all of the bits within the bitmap's bounding box will be |
| 143 |
set, overwriting whatever color or graphics were already on the page. |
| 144 |
If this effect is not desired, and you only want to set bits explicitly |
| 145 |
assigned in drawing the graph, set <B>bgcolor</B>="transparent". |
| 146 |
#bottomlabel:N:string:""; |
| 147 |
# Additional label near bottom of nodes of shape M*. |
| 148 |
:center:G:bool:false; |
| 149 |
If true, the drawing is centered in the output canvas. |
| 150 |
:charset:G:string:"UTF-8"; |
| 151 |
Specifies the character encoding used when interpreting string input |
| 152 |
as a text label. The default value is <TT>"UTF-8"</TT>. |
| 153 |
The other legal value is <TT>"iso-8859-1"</TT> or, |
| 154 |
equivalently, |
| 155 |
<TT>"Latin1"</TT>. The <B>charset</B> attribute is case-insensitive. |
| 156 |
Note that if the character encoding used in the input does not |
| 157 |
match the <B>charset</B> value, the resulting output may be very strange. |
| 158 |
:class:ENCG:string:"":;svg |
| 159 |
Classnames to attach to the node, edge, graph, or cluster's SVG element. |
| 160 |
Combine with <a href="#d:stylesheet">stylesheet</a> for styling SVG output |
| 161 |
using CSS classnames. |
| 162 |
<p> |
| 163 |
Multiple space-separated classes are supported. |
| 164 |
<p> |
| 165 |
<pre> |
| 166 |
digraph G { |
| 167 |
graph [class="cats"]; |
| 168 |
|
| 169 |
subgraph cluster_big { |
| 170 |
graph [class="big_cats"]; |
| 171 |
|
| 172 |
"Lion" [class="yellow social"]; |
| 173 |
"Snow Leopard" [class="white solitary"]; |
| 174 |
}; |
| 175 |
} |
| 176 |
</pre> |
| 177 |
:clusterrank:G:clusterMode:local; dot |
| 178 |
Mode used for handling clusters. If <B>clusterrank</B> is "local", a |
| 179 |
subgraph whose name begins with "cluster" is given special treatment. |
| 180 |
The subgraph is laid out separately, and then integrated as a unit into |
| 181 |
its parent graph, with a bounding rectangle drawn about it. |
| 182 |
If the cluster has a <A HREF=#d:label>label</A> parameter, this label |
| 183 |
is displayed within the rectangle. |
| 184 |
Note also that there can be clusters within clusters. |
| 185 |
At present, the modes "global" and "none" |
| 186 |
appear to be identical, both turning off the special cluster processing. |
| 187 |
:color:ENC:color/colorList:black; |
| 188 |
Basic drawing color for graphics, not text. For the latter, use the |
| 189 |
<A HREF=#d:fontcolor>fontcolor</A> attribute. |
| 190 |
<P> |
| 191 |
For edges, the value |
| 192 |
can either be a single color or a <A HREF=#k:colorList>colorList</A>. |
| 193 |
In the latter case, if colorList has no fractions, |
| 194 |
the edge is drawn using parallel splines or lines, |
| 195 |
one for each color in the list, in the order given. |
| 196 |
The head arrow, if any, is drawn using the first color in the list, |
| 197 |
and the tail arrow, if any, the second color. This supports the common |
| 198 |
case of drawing opposing edges, but using parallel splines instead of |
| 199 |
separately routed multiedges. |
| 200 |
If any fraction is used, the colors are drawn in series, with each color |
| 201 |
being given roughly its specified fraction of the edge. |
| 202 |
For example, the graph |
| 203 |
<PRE> |
| 204 |
digraph G { |
| 205 |
a -> b [dir=both color="red:blue"] |
| 206 |
c -> d [dir=none color="green:red;0.25:blue"] |
| 207 |
} |
| 208 |
</PRE> |
| 209 |
yields<BR> |
| 210 |
<IMG SRC="colorlist.gif"> |
| 211 |
:colorscheme:ENCG:string:""; |
| 212 |
This attribute specifies a color scheme namespace. If defined, it specifies |
| 213 |
the context for interpreting color names. In particular, if a |
| 214 |
<A HREF=#k:color>color</A> value has form <TT>"xxx"</TT> or <TT>"//xxx"</TT>, |
| 215 |
then the |
| 216 |
color <TT>xxx</TT> will be evaluated according to the current color scheme. |
| 217 |
If no color scheme is set, the standard X11 naming is used. |
| 218 |
For example, if <TT>colorscheme=bugn9</TT>, then <TT>color=7</TT> |
| 219 |
is interpreted as <TT>"/bugn9/7"</TT>. |
| 220 |
:comment:ENG:string:""; |
| 221 |
Comments are inserted into output. Device-dependent |
| 222 |
:compound:G:bool:false; dot |
| 223 |
If true, allow edges between clusters. (See <A HREF=#d:lhead>lhead</A> |
| 224 |
and <A HREF=#d:ltail>ltail</A> below.) |
| 225 |
:concentrate:G:bool:false; |
| 226 |
If true, use edge concentrators. |
| 227 |
This merges multiedges into a single edge and causes partially parallel |
| 228 |
edges to share part of their paths. The latter feature is not yet available |
| 229 |
outside of dot. |
| 230 |
:constraint:E:bool:true; dot |
| 231 |
If false, the edge is not used in ranking the nodes. For example, |
| 232 |
in the graph |
| 233 |
<PRE> |
| 234 |
digraph G { |
| 235 |
a -> c; |
| 236 |
a -> b; |
| 237 |
b -> c [constraint=false]; |
| 238 |
} |
| 239 |
</PRE> |
| 240 |
the edge <CODE>b -> c</CODE> does not add a constraint during rank |
| 241 |
assignment, so the only constraints are that a be above b and c, |
| 242 |
yielding the graph:<BR> |
| 243 |
<IMG SRC="constraint.gif"> |
| 244 |
:defaultdist:G:double:1+(avg. len)*sqrt(|V|):epsilon; neato |
| 245 |
This specifies the distance between nodes in separate connected |
| 246 |
components. If set too small, connected components may overlap. |
| 247 |
Only applicable if <A HREF=#d:pack>pack</A>=false. |
| 248 |
:decorate:E:bool:false; |
| 249 |
If true, attach edge label to edge by a 2-segment |
| 250 |
polyline, underlining the label, then going to the closest point of spline. |
| 251 |
:dim:G:int:2:2; neato,fdp,sfdp |
| 252 |
Set the number of dimensions used for the layout. The maximum value |
| 253 |
allowed is 10. |
| 254 |
:dimen:G:int:2:2; neato,fdp,sfdp |
| 255 |
Set the number of dimensions used for rendering. |
| 256 |
The maximum value allowed is 10. |
| 257 |
If both <TT>dimen</TT> and <TT>dim</TT> are set, the latter specifies |
| 258 |
the dimension used for layout, and the former for rendering. |
| 259 |
If only <TT>dimen</TT> is set, this is used for both layout and rendering |
| 260 |
dimensions. |
| 261 |
<P> |
| 262 |
Note that, at present, all aspects of rendering are 2D. This includes |
| 263 |
the shape and size of nodes, overlap removal, and edge routing. Thus, |
| 264 |
for <TT>dimen > 2</TT>, the only valid information is the <TT>pos</TT> |
| 265 |
attribute of the nodes. |
| 266 |
All other coordinates will be 2D and, at best, will reflect a projection |
| 267 |
of a higher-dimensional point onto the plane. |
| 268 |
:dir:E:dirType:forward(directed)/none(undirected); |
| 269 |
Set edge type for drawing arrowheads. This indicates which ends of the |
| 270 |
edge should be decorated with an arrowhead. The actual style of the |
| 271 |
arrowhead can be specified using the <A HREF=#d:arrowhead>arrowhead</A> |
| 272 |
and <A HREF=#d:arrowtail>arrowtail</A> attributes. |
| 273 |
See <A HREF=#h:undir_note>limitation</A>. |
| 274 |
:diredgeconstraints:G:string/bool:false; neato |
| 275 |
Only valid when <A HREF=#d:mode>mode</A>="ipsep". |
| 276 |
If true, constraints are generated for each edge in the largest (heuristic) |
| 277 |
directed acyclic subgraph such that the edge must point downwards. |
| 278 |
If "hier", generates level constraints similar to those used with |
| 279 |
<A HREF=#d:mode>mode</A>="hier". The main difference is that, in the latter |
| 280 |
case, only these constraints are involved, so a faster solver can be used. |
| 281 |
:distortion:N:double:0.0:-100.0; |
| 282 |
Distortion factor for <A HREF=#d:shape><B>shape</B></A>=polygon. |
| 283 |
Positive values cause top part to |
| 284 |
be larger than bottom; negative values do the opposite. |
| 285 |
:dpi:G:double:96.0/0.0; bitmap output,svg |
| 286 |
This specifies the expected number of pixels per inch on a display device. |
| 287 |
For bitmap output, this guarantees that text rendering will be |
| 288 |
done more accurately, both in size and in placement. For SVG output, |
| 289 |
it is used to guarantee that the dimensions in the output correspond to |
| 290 |
the correct number of points or inches. |
| 291 |
:edgeURL:E:escString:""; map,svg |
| 292 |
If <B>edgeURL</B> is defined, this is the link used for the non-label |
| 293 |
parts of an edge. This value overrides any <A HREF=#d:URL>URL</A> |
| 294 |
defined for the edge. |
| 295 |
Also, this value is used near the head or tail node unless overridden |
| 296 |
by a <A HREF=#d:headURL>headURL</A> or <A HREF=#d:tailURL>tailURL</A> value, |
| 297 |
respectively. |
| 298 |
See <A HREF=#h:undir_note>limitation</A>. |
| 299 |
:edgehref:E:escString:""; map,svg |
| 300 |
Synonym for <A HREF=#d:edgeURL>edgeURL</A>. |
| 301 |
:edgetarget:E:escString:<none>; map,svg |
| 302 |
If the edge has a <A HREF=#d:URL>URL</A> or <A HREF=#d:edgeURL>edgeURL</A> |
| 303 |
attribute, this attribute determines which window of the |
| 304 |
browser is used |
| 305 |
for the URL attached to the non-label part of the edge. |
| 306 |
Setting it to "_graphviz" will open a new window if it |
| 307 |
doesn't already exist, or reuse it if it does. |
| 308 |
If undefined, the value of the <A HREF=#d:target>target</A> is used. |
| 309 |
:edgetooltip:E:escString:""; cmap,svg |
| 310 |
Tooltip annotation attached to the non-label part of an edge. |
| 311 |
This is used only if the edge has a <A HREF=#d:URL>URL</A> |
| 312 |
or <A HREF=#d:edgeURL>edgeURL</A> attribute. |
| 313 |
:epsilon:G:double:.0001 * # nodes(mode == KK)/.0001(mode == major)/.01(mode == sgd); neato |
| 314 |
Terminating condition. If the length squared of all energy gradients are |
| 315 |
< <B>epsilon</B>, the algorithm stops. |
| 316 |
:esep:G:addDouble/addPoint:+3; notdot |
| 317 |
Margin used around polygons for purposes of spline edge routing. |
| 318 |
The interpretation is the same as given for <A HREF=#d:sep>sep</A>. |
| 319 |
This should normally be strictly less than <A HREF=#d:sep>sep</A>. |
| 320 |
:fillcolor:NEC:color/colorList:lightgrey(nodes)/black(clusters); |
| 321 |
Color used to fill the background of a node or cluster |
| 322 |
assuming <A HREF=#d:style>style</A>=filled, or a filled arrowhead. |
| 323 |
If <B>fillcolor</B> is not defined, <A HREF=#d:color>color</A> is |
| 324 |
used. (For clusters, if <B>color</B> is not defined, |
| 325 |
<A HREF=#d:bgcolor>bgcolor</A> is used.) If this is not defined, |
| 326 |
the default is used, except for |
| 327 |
<A HREF=#d:shape><B>shape</B></A>=point or when the output |
| 328 |
format is MIF, |
| 329 |
which use black by default. |
| 330 |
<P> |
| 331 |
If the value is a <A HREF=#k:colorList>colorList</A>, a gradient fill is |
| 332 |
used. By default, this is a linear fill; setting <TT>style=radial</TT> will |
| 333 |
cause a radial fill. At present, only two colors are used. If the second |
| 334 |
color (after a colon) is missing, the default color is used for it. |
| 335 |
See also the <A HREF=#d:gradientangle>gradientangle</A> attribute |
| 336 |
for setting the gradient angle. |
| 337 |
<P> |
| 338 |
Note that a cluster inherits the root graph's attributes if defined. |
| 339 |
Thus, if the root graph has defined a <B>fillcolor</B>, this will override a |
| 340 |
<B>color</B> or <B>bgcolor</B> attribute set for the cluster. |
| 341 |
:fixedsize:N:bool/string:false; |
| 342 |
If <tt>false</tt>, the size of a node is determined by smallest width and height |
| 343 |
needed to contain its label and image, if any, with a margin specified by |
| 344 |
the <A HREF=#d:margin><TT>margin</TT></A> attribute. The width |
| 345 |
and height must also be at least as large as the sizes specified by the |
| 346 |
<A HREF=#d:width><TT>width</TT></A> and |
| 347 |
<A HREF=#d:height><TT>height</TT></A> attributes, which specify |
| 348 |
the minimum values for these parameters. |
| 349 |
<P> |
| 350 |
If <tt>true</tt>, the node size is specified by the values of the |
| 351 |
<A HREF=#d:width><TT>width</TT></A> |
| 352 |
and <A HREF=#d:height><TT>height</TT></A> attributes only |
| 353 |
and is not expanded to contain the text label. |
| 354 |
There will be a warning if the label (with margin) |
| 355 |
cannot fit within these limits. |
| 356 |
<P> |
| 357 |
If the <A HREF=attrs.html#d:fixedsize><TT>fixedsize</TT></A> attribute is set |
| 358 |
to <tt>shape</tt>, the <A HREF=#d:width><TT>width</TT></A> and |
| 359 |
<A HREF=#d:height><TT>height</TT></A> attributes also determine the size |
| 360 |
of the node shape, but the label can be much larger. Both the label and |
| 361 |
shape sizes are used when avoiding node overlap, but all edges to the |
| 362 |
node ignore the label and only contact the node shape. No warning is given |
| 363 |
if the label is too large. |
| 364 |
:fontcolor:ENGC:color:black; |
| 365 |
Color used for text. |
| 366 |
:fontnames:G:string:""; svg |
| 367 |
Allows user control of how basic fontnames are represented in SVG output. |
| 368 |
If <TT>fontnames</TT> is undefined or <TT>"svg"</TT>, |
| 369 |
the output will try to use known SVG fontnames. For example, the |
| 370 |
default font <TT>"Times-Roman"</TT> will be mapped to the |
| 371 |
basic SVG font <TT>"serif"</TT>. This can be overridden by setting |
| 372 |
<TT>fontnames</TT> to <TT>"ps"</TT> or <TT>"gd"</TT>. |
| 373 |
In the former case, known PostScript font names such as |
| 374 |
<TT>"Times-Roman"</TT> will be used in the output. |
| 375 |
In the latter case, the fontconfig font conventions |
| 376 |
are used. Thus, <TT>"Times-Roman"</TT> would be treated as |
| 377 |
<TT>"Nimbus Roman No9 L"</TT>. These last two options are useful |
| 378 |
with SVG viewers that support these richer fontname spaces. |
| 379 |
:fontname:ENGC:string:"Times-Roman"; |
| 380 |
Font used for text. This very much depends on the output format and, for |
| 381 |
non-bitmap output such as PostScript or SVG, the availability of the font |
| 382 |
when the graph is displayed or printed. As such, it is best to rely on |
| 383 |
font faces that are generally available, such as Times-Roman, Helvetica or |
| 384 |
Courier. |
| 385 |
<P> |
| 386 |
How font names are resolved also depends on the underlying library that handles |
| 387 |
font name resolution. |
| 388 |
If Graphviz was built using the |
| 389 |
<A HREF=http://pdx.freedesktop.org/~fontconfig/fontconfig-user.html>fontconfig library</A>, |
| 390 |
the latter library will be used to search for the font. |
| 391 |
See the commands <B>fc-list</B>, <B>fc-match</B> and the other fontconfig commands for how |
| 392 |
names are resolved and which fonts are available. |
| 393 |
Other systems may provide their own font package, such as Quartz for OS X. |
| 394 |
<P> |
| 395 |
Note that various font attributes, such as weight and slant, can be built into the |
| 396 |
font name. Unfortunately, the syntax varies depending on which font system is dominant. |
| 397 |
Thus, using <TT>fontname="times bold italic"</TT> will produce a bold, slanted Times font |
| 398 |
using Pango, the usual main font library. Alternatively, |
| 399 |
<TT>fontname="times:italic"</TT> will produce a slanted |
| 400 |
Times font from fontconfig, while <TT>fontname="times-bold"</TT> will resolve to a bold |
| 401 |
Times using Quartz. You will need |
| 402 |
to ascertain which package is used by your Graphviz system and refer to the relevant |
| 403 |
documentation. |
| 404 |
<P> |
| 405 |
If Graphviz is not built with a high-level font library, <TT>fontname</TT> will be |
| 406 |
considered the name of a Type 1 or True Type font file. |
| 407 |
If you specify <TT>fontname=schlbk</TT>, the tool will look for a |
| 408 |
file named <TT>schlbk.ttf</TT> or <TT>schlbk.pfa</TT> or <TT>schlbk.pfb</TT> |
| 409 |
in one of the directories specified by |
| 410 |
the <A HREF=#d:fontpath>fontpath</A> attribute. |
| 411 |
The lookup does support various aliases for the common fonts. |
| 412 |
:fontpath:G:string:system-dependent; |
| 413 |
Directory list used by libgd to search for bitmap fonts if Graphviz |
| 414 |
was not built with the fontconfig library. |
| 415 |
If <B>fontpath</B> is not set, the environment |
| 416 |
variable <TT>DOTFONTPATH</TT> is checked. |
| 417 |
If that is not set, <TT>GDFONTPATH</TT> is checked. |
| 418 |
If not set, libgd uses its compiled-in font path. |
| 419 |
Note that fontpath is an attribute of the root graph. |
| 420 |
:fontsize:ENGC:double:14.0:1.0; |
| 421 |
Font size, <A HREF=#points>in points</A>, used for text. |
| 422 |
:forcelabels:G:bool:true; |
| 423 |
If true, all <A HREF=#d:xlabel><B>xlabel</B></A> attributes are placed, even if there is some overlap with nodes |
| 424 |
or other labels. |
| 425 |
:gradientangle:NCG:int:""; |
| 426 |
If a gradient fill is being used, this determines the angle of the fill. For linear fills, the colors transform |
| 427 |
along a line specified by the angle and the center of the object. For radial fills, a value of zero causes the |
| 428 |
colors to transform radially from the center; for non-zero values, the colors transform from a point near the |
| 429 |
object's periphery as specified by the value. |
| 430 |
<P> |
| 431 |
If unset, the default angle is 0. |
| 432 |
:group:N:string:""; dot |
| 433 |
If the end points of an edge belong to the same group, i.e., have the |
| 434 |
same group attribute, parameters are set to avoid crossings and keep |
| 435 |
the edges straight. |
| 436 |
:headURL:E:escString:""; map,svg |
| 437 |
If <B>headURL</B> is defined, it is |
| 438 |
output as part of the head label of the edge. |
| 439 |
Also, this value is used near the head node, overriding any |
| 440 |
<A HREF=#d:URL>URL</A> value. |
| 441 |
See <A HREF=#h:undir_note>limitation</A>. |
| 442 |
:headclip:E:bool:true; |
| 443 |
If true, the head of an edge is clipped to the boundary of the head node; |
| 444 |
otherwise, the end of the edge goes to the center of the node, or the |
| 445 |
center of a port, if applicable. |
| 446 |
:headhref:E:escString:""; map,svg |
| 447 |
Synonym for <A HREF=#d:headURL>headURL</A>. |
| 448 |
:headlabel:E:lblString:""; |
| 449 |
Text label to be placed near head of edge. |
| 450 |
See <A HREF=#h:undir_note>limitation</A>. |
| 451 |
:head_lp:E:point; write |
| 452 |
Position of an edge's head label, <A HREF=#points>in points</A>. |
| 453 |
The position indicates the center of the label. |
| 454 |
:headport:E:portPos:center; |
| 455 |
Indicates where on the head node to attach the head of the edge. |
| 456 |
In the default case, the edge is aimed towards the center of the node, |
| 457 |
and then clipped at the node boundary. |
| 458 |
See <A HREF=#h:undir_note>limitation</A>. |
| 459 |
:headtarget:E:escString:<none>; map,svg |
| 460 |
If the edge has a <A HREF=#d:headURL>headURL</A>, |
| 461 |
this attribute determines which window of the |
| 462 |
browser is used |
| 463 |
for the URL. Setting it to "_graphviz" will open a new window if it |
| 464 |
doesn't already exist, or reuse it if it does. |
| 465 |
If undefined, the value of the <A HREF=#d:target>target</A> is used. |
| 466 |
:headtooltip:E:escString:""; cmap,svg |
| 467 |
Tooltip annotation attached to the head of an edge. This is used only |
| 468 |
if the edge has a <A HREF=#d:headURL>headURL</A> attribute. |
| 469 |
:height:N:double:0.5:0.02; |
| 470 |
Height of node, in inches. This is taken as the initial, minimum height |
| 471 |
of the node. If <A HREF=#d:fixedsize><B>fixedsize</B></A> is true, this |
| 472 |
will be the final height of the node. Otherwise, if the node label |
| 473 |
requires more height to fit, the node's height will be increased to |
| 474 |
contain the label. Note also that, if the output format is dot, the |
| 475 |
value given to <B>height</B> will be the final value. |
| 476 |
<P> |
| 477 |
If the node shape is regular, the width and height are made identical. |
| 478 |
In this case, if either the width or the height is set explicitly, |
| 479 |
that value is used. |
| 480 |
In this case, if both the width or the height are set explicitly, |
| 481 |
the maximum of the two values is used. |
| 482 |
If neither is set explicitly, the minimum of the two default values |
| 483 |
is used. |
| 484 |
:href:GCNE:escString:""; map,postscript,svg |
| 485 |
Synonym for <A HREF=#d:URL>URL</A>. |
| 486 |
:id:GCNE:escString:""; map,postscript,svg |
| 487 |
Allows the graph author to provide an id for graph objects which is to be included in the output. |
| 488 |
Normal "\N", "\E", "\G" substitutions are applied. |
| 489 |
If provided, it is the responsibility of the provider to keep |
| 490 |
its values sufficiently unique for its intended downstream use. |
| 491 |
Note, in particular, that "\E" does not provide a unique id for multi-edges. |
| 492 |
If no id attribute is provided, then a unique internal id is used. However, |
| 493 |
this value is unpredictable by the graph writer. |
| 494 |
An externally provided id is not used internally. |
| 495 |
<P> |
| 496 |
If the graph provides an id attribute, this will be used as a prefix for |
| 497 |
internally generated attributes. By making these distinct, the user |
| 498 |
can include multiple image maps in the same document. |
| 499 |
:image:N:string:""; |
| 500 |
Gives the name of a file containing an image to be displayed inside |
| 501 |
a node. The image file must be in one of the recognized |
| 502 |
<A HREF=output.html#d:image_fmts>formats</A>, |
| 503 |
typically JPEG, PNG, GIF, BMP, SVG or Postscript, and be able to be converted |
| 504 |
into the desired output format. |
| 505 |
<P> |
| 506 |
The file must contain the image size information. This is usually trivially |
| 507 |
true for the bitmap formats. For PostScript, the file must contain a |
| 508 |
line starting with <TT>%%BoundingBox: </TT> followed by four integers |
| 509 |
specifying the lower left x and y coordinates and the upper right x and y |
| 510 |
coordinates of the bounding box for the image, the coordinates being in |
| 511 |
points. An SVG image file must contain <TT>width</TT> and <TT>height</TT> |
| 512 |
attributes, typically as part of the <TT>svg</TT> element. |
| 513 |
The values for these should have the form of a floating point number, |
| 514 |
followed by optional units, e.g., <TT>width="76pt"</TT>. |
| 515 |
Recognized units are <TT>in</TT>, <TT>px</TT>, |
| 516 |
<TT>pc</TT>, <TT>pt</TT>, <TT>cm</TT> and <TT>mm</TT> for inches, pixels, |
| 517 |
picas, points, centimeters and millimeters, respectively. |
| 518 |
The default unit is points. |
| 519 |
<P> |
| 520 |
Unlike with the <A HREF=#d:shapefile>shapefile</A> attribute, |
| 521 |
the image is treated as node |
| 522 |
content rather than the entire node. In particular, an image can |
| 523 |
be contained in a node of any shape, not just a rectangle. |
| 524 |
:imagepath:G:string:""; |
| 525 |
Specifies a list of directories in which to look for image files as specified by the |
| 526 |
<a href="#d:image">image</a> attribute or using the <TT>IMG</TT> element in |
| 527 |
<a href="shapes.html#html">HTML-like labels</a>. |
| 528 |
The string should be a list of (absolute or relative) pathnames, each separated by |
| 529 |
a semicolon (for Windows) or a colon (all other OS). |
| 530 |
The first directory in which a file of the given name is found will be used to |
| 531 |
load the image. If <tt>imagepath</tt> is not set, relative pathnames for the image |
| 532 |
file will be interpreted with respect to the current working directory. |
| 533 |
:imagepos:N:string:"mc":; |
| 534 |
Attribute controlling how an image is positioned within its containing node. This |
| 535 |
only has an effect when the image is smaller than the containing node. The |
| 536 |
default is to be centered both horizontally and vertically. Valid values: |
| 537 |
<TABLE> |
| 538 |
<TR><TD>tl</TD><TD>Top Left</TD></TR> |
| 539 |
<TR><TD>tc</TD><TD>Top Centered</TD></TR> |
| 540 |
<TR><TD>tr</TD><TD>Top Right</TD></TR> |
| 541 |
<TR><TD>ml</TD><TD>Middle Left</TD></TR> |
| 542 |
<TR><TD>mc</TD><TD>Middle Centered <I>(the default)</I></TD></TR> |
| 543 |
<TR><TD>mr</TD><TD>Middle Right</TD></TR> |
| 544 |
<TR><TD>bl</TD><TD>Bottom Left</TD></TR> |
| 545 |
<TR><TD>bc</TD><TD>Bottom Centered</TD></TR> |
| 546 |
<TR><TD>br</TD><TD>Bottom Right</TD></TR> |
| 547 |
</TABLE> |
| 548 |
:imagescale:N:bool/string:false:; |
| 549 |
Attribute controlling how an image fills its |
| 550 |
containing node. In general, the image is given its natural size, |
| 551 |
(cf. <A HREF=#d:dpi>dpi</A>), |
| 552 |
and the node size is made large enough to contain its image, its |
| 553 |
label, its margin, and its peripheries. |
| 554 |
Its width and height will also be at least as large as its |
| 555 |
minimum <A HREF=#d:width>width</A> and <A HREF=#d:height>height</A>. |
| 556 |
If, however, <TT>fixedsize=true</TT>, |
| 557 |
the width and height attributes specify the exact size of the node. |
| 558 |
<P> |
| 559 |
During rendering, in the default case (<TT>imagescale=false</TT>), |
| 560 |
the image retains its natural size. |
| 561 |
If <TT>imagescale=true</TT>, |
| 562 |
the image is uniformly scaled (i.e., its aspect ratio is |
| 563 |
preserved) to fit inside the node. |
| 564 |
At least one dimension of the image will be as large as possible |
| 565 |
given the size of the node. |
| 566 |
When <TT>imagescale=width</TT>, |
| 567 |
the width of the image is scaled to fill the node width. |
| 568 |
The corresponding property holds when <TT>imagescale=height</TT>. |
| 569 |
When <TT>imagescale=both</TT>, |
| 570 |
both the height and the width are scaled separately to fill the node. |
| 571 |
<P> |
| 572 |
In all cases, if a dimension of the image is larger than the |
| 573 |
corresponding dimension of the node, that dimension of the |
| 574 |
image is scaled down to fit the node. As with the case of |
| 575 |
expansion, if <TT>imagescale=true</TT>, width and height are |
| 576 |
scaled uniformly. |
| 577 |
:inputscale:G:double:<none>; neato,fdp |
| 578 |
For layout algorithms that support initial input positions (specified by the <A HREF=#d:pos><B>pos</B></A> attribute), |
| 579 |
this attribute can be used to appropriately scale the values. By default, fdp and neato interpret |
| 580 |
the x and y values of pos as being in inches. (<B>NOTE</B>: neato -n(2) treats the coordinates as |
| 581 |
being in points, being the unit used by the layout algorithms for the pos attribute.) Thus, if |
| 582 |
the graph has pos attributes in points, one should set <TT>inputscale=72</TT>. |
| 583 |
This can also be set on the command line using the <A HREF=command.html#minusK><TT>-s</TT> flag</A> flag. |
| 584 |
<P> |
| 585 |
If not set, no scaling is done and the units on input are treated as inches. |
| 586 |
A value of 0 is equivalent to <TT>inputscale=72</TT>. |
| 587 |
:K:GC:double:0.3:0; fdp,sfdp |
| 588 |
Spring constant used in virtual physical model. It roughly corresponds |
| 589 |
to an ideal edge length (in inches), in that increasing K tends to |
| 590 |
increase the distance between nodes. |
| 591 |
Note that the edge attribute <A HREF=#d:len>len</A> can be used to |
| 592 |
override this value for adjacent nodes. |
| 593 |
:label:ENGC:lblString:"\\N" (nodes)/"" (otherwise); |
| 594 |
Text label attached to objects. |
| 595 |
If a node's <A HREF=#d:shape>shape</A> is record, then the label can |
| 596 |
have a <A HREF=shapes.html#record>special format</A> |
| 597 |
which describes the record layout. |
| 598 |
<P> |
| 599 |
Note that a node's default label is "\N", so the node's name or ID becomes |
| 600 |
its label. Technically, a node's name can be an HTML string but this will not |
| 601 |
mean that the node's label will be interpreted as an <a href="shapes.html#html">HTML-like label</a>. This is |
| 602 |
because the node's actual label is an ordinary string, which will be replaced |
| 603 |
by the raw bytes stored in the node's name. |
| 604 |
To get an HTML-like label, the label attribute value itself must be an HTML string. |
| 605 |
:labelURL:E:escString:""; map,svg |
| 606 |
If <B>labelURL</B> is defined, this is the link used for the label |
| 607 |
of an edge. This value overrides any <A HREF=#d:URL>URL</A> |
| 608 |
defined for the edge. |
| 609 |
:labelangle:E:double:-25.0:-180.0; |
| 610 |
This, along with <A HREF=#d:labeldistance>labeldistance</A>, determine |
| 611 |
where the |
| 612 |
headlabel (taillabel) are placed with respect to the head (tail) |
| 613 |
in polar coordinates. The origin in the coordinate system is |
| 614 |
the point where the edge touches the node. The ray of 0 degrees |
| 615 |
goes from the origin back along the edge, parallel to the edge |
| 616 |
at the origin. |
| 617 |
<P> |
| 618 |
The angle, in degrees, specifies the rotation from the 0 degree ray, |
| 619 |
with positive angles moving counterclockwise and negative angles |
| 620 |
moving clockwise. |
| 621 |
:labeldistance:E:double:1.0:0.0; |
| 622 |
Multiplicative scaling factor adjusting the distance that |
| 623 |
the headlabel(taillabel) is from the head(tail) node. |
| 624 |
The default distance is 10 points. See <A HREF=#d:labelangle>labelangle</A> |
| 625 |
for more details. |
| 626 |
:labelfloat:E:bool:false; |
| 627 |
If true, allows edge labels to be less constrained in position. |
| 628 |
In particular, it may appear on top of other edges. |
| 629 |
:labelfontcolor:E:color:black; |
| 630 |
Color used for headlabel and taillabel. |
| 631 |
If not set, defaults to edge's fontcolor. |
| 632 |
:labelfontname:E:string:"Times-Roman"; |
| 633 |
Font used for headlabel and taillabel. |
| 634 |
If not set, defaults to edge's fontname. |
| 635 |
:labelfontsize:E:double:14.0:1.0; |
| 636 |
Font size, <A HREF=#points>in points</A>, used for headlabel and taillabel. |
| 637 |
If not set, defaults to edge's fontsize. |
| 638 |
:labelhref:E:escString:""; map,svg |
| 639 |
Synonym for <A HREF=#d:labelURL>labelURL</A>. |
| 640 |
:labeljust:GC:string:"c"; |
| 641 |
Justification for cluster labels. If "r", the label |
| 642 |
is right-justified within bounding rectangle; if "l", left-justified; |
| 643 |
else the label is centered. |
| 644 |
Note that a subgraph inherits attributes from its parent. Thus, if |
| 645 |
the root graph sets <B>labeljust</B> to "l", the subgraph inherits |
| 646 |
this value. |
| 647 |
:labelloc:NGC:string:"t"(clusters)/"b"(root graphs)/"c"(nodes); |
| 648 |
Vertical placement of labels for nodes, root graphs and clusters. |
| 649 |
<P> |
| 650 |
For graphs and clusters, only "t" and "b" are allowed, corresponding |
| 651 |
to placement at the top and bottom, respectively. |
| 652 |
By default, root |
| 653 |
graph labels go on the bottom and cluster labels go on the top. |
| 654 |
Note that a subgraph inherits attributes from its parent. Thus, if |
| 655 |
the root graph sets <B>labelloc</B> to "b", the subgraph inherits |
| 656 |
this value. |
| 657 |
<P> |
| 658 |
For nodes, this attribute is used only when the height of the node |
| 659 |
is larger than the height of its label. |
| 660 |
If <TT>labelloc</TT> is set to "t", "c", or "b", the label is aligned |
| 661 |
with the top, centered, or aligned with the bottom of the node, respectively. |
| 662 |
In the default case, the label is vertically centered. |
| 663 |
:labeltarget:E:escString:<none>; map,svg |
| 664 |
If the edge has a <A HREF=#d:URL>URL</A> or <A HREF=#d:labelURL>labelURL</A> |
| 665 |
attribute, this attribute determines which window of the |
| 666 |
browser is used |
| 667 |
for the URL attached to the label. |
| 668 |
Setting it to "_graphviz" will open a new window if it |
| 669 |
doesn't already exist, or reuse it if it does. |
| 670 |
If undefined, the value of the <A HREF=#d:target>target</A> is used. |
| 671 |
:labeltooltip:E:escString:""; cmap,svg |
| 672 |
Tooltip annotation attached to label of an edge. |
| 673 |
This is used only if the edge has a <A HREF=#d:URL>URL</A> |
| 674 |
or <A HREF=#d:labelURL>labelURL</A> attribute. |
| 675 |
:label_scheme:G:int:0:0; sfdp |
| 676 |
The value indicates |
| 677 |
whether to treat a node whose name has the form |edgelabel|* as a special node representing an edge label. |
| 678 |
The default (0) produces no effect. |
| 679 |
If the attribute is set to 1, sfdp uses a penalty-based method to make that kind of node close to the |
| 680 |
center of its neighbor. With a value of 2, sfdp uses a penalty-based method to make that kind of node |
| 681 |
close to the old center of its neighbor. Finally, a value of 3 invokes a two-step process of overlap |
| 682 |
removal and straightening. |
| 683 |
:landscape:G:bool:false; |
| 684 |
If true, the graph is rendered in landscape mode. Synonymous with |
| 685 |
<A HREF=#d:rotate><TT>rotate=90</TT></A> or |
| 686 |
<A HREF=#d:orientation><TT>orientation=landscape</TT></A>. |
| 687 |
:layer:ENC:layerRange:""; |
| 688 |
Specifies layers in which the node, edge or cluster is present. |
| 689 |
:layers:G:layerList:""; |
| 690 |
Specifies a linearly ordered list of layer names attached to the graph |
| 691 |
The graph is then output in separate layers. Only those components |
| 692 |
belonging to the current output layer appear. For more information, |
| 693 |
see the page <A HREF="../../../faq/#FaqOverlays">How to use drawing layers (overlays)</A>. |
| 694 |
:layerlistsep:G:string:","; |
| 695 |
Specifies the separator characters used to split |
| 696 |
an attribute of type <A HREF=#k:layerRange>layerRange</A> into a list of ranges. |
| 697 |
:layerselect:G:layerRange:""; |
| 698 |
Selects a list of layers to be emitted. |
| 699 |
:layersep:G:string:" :\t"; |
| 700 |
Specifies the separator characters used to split the |
| 701 |
<A HREF=#d:layers>layers</A> attribute into a list of layer names. |
| 702 |
:layout:G:string:""; |
| 703 |
Specifies the name of the layout algorithm to use, such as "dot" |
| 704 |
or "neato". Normally, graphs should be kept independent of a type of |
| 705 |
layout. In some cases, however, it can be convenient to embed the type |
| 706 |
of layout desired within the graph. For example, a graph containing |
| 707 |
position information from a layout might want to record what the |
| 708 |
associated layout algorithm was. |
| 709 |
<P> |
| 710 |
This attribute takes precedence over |
| 711 |
the <A HREF=command.html#minusK>-K flag</A> |
| 712 |
or the actual command name used. |
| 713 |
:len:E:double:1.0(neato)/0.3(fdp); neato,fdp |
| 714 |
Preferred edge length, in inches. |
| 715 |
:levels:G:int:MAXINT:0.0; sfdp |
| 716 |
Number of levels allowed in the multilevel scheme. |
| 717 |
:levelsgap:G:double:0.0; neato |
| 718 |
Specifies strictness of level constraints in neato |
| 719 |
when <TT><A HREF=#d:mode>mode</A>="ipsep" or "hier"</TT>. |
| 720 |
Larger positive values mean stricter constraints, which demand more |
| 721 |
separation between levels. On the other hand, negative values will relax |
| 722 |
the constraints by allowing some overlap between the levels. |
| 723 |
:lhead:E:string:""; dot |
| 724 |
Logical head of an edge. When <A HREF=#d:compound><B>compound</B></A> is true, |
| 725 |
if <B>lhead</B> is defined and is the name of a cluster containing |
| 726 |
the real head, |
| 727 |
the edge is clipped to the boundary of the cluster. |
| 728 |
See <A HREF=#h:undir_note>limitation</A>. |
| 729 |
:lheight:GC:double; write |
| 730 |
Height of graph or cluster label, in inches. |
| 731 |
:lp:EGC:point; write |
| 732 |
Label position, <A HREF=#points>in points</A>. |
| 733 |
The position indicates the center of the label. |
| 734 |
:ltail:E:string:""; dot |
| 735 |
Logical tail of an edge. When <A HREF=#d:compound><B>compound</B></A> is true, |
| 736 |
if <B>ltail</B> is defined and is the name of a cluster |
| 737 |
containing the real tail, |
| 738 |
the edge is clipped to the boundary of the cluster. |
| 739 |
See <A HREF=#h:undir_note>limitation</A>. |
| 740 |
:lwidth:GC:double; write |
| 741 |
Width of graph or cluster label, in inches. |
| 742 |
:margin:NCG:double/point:<device-dependent>; |
| 743 |
For graphs, this sets x and y margins of canvas, in inches. If the margin |
| 744 |
is a single double, both margins are set equal to the given value. |
| 745 |
<P> |
| 746 |
Note that the margin is not part of the drawing but just empty space |
| 747 |
left around the drawing. It basically corresponds to a translation of |
| 748 |
drawing, as would be necessary to center a drawing on a page. Nothing |
| 749 |
is actually drawn in the margin. To actually extend the background of |
| 750 |
a drawing, see the <A HREF=#d:pad>pad</A> attribute. |
| 751 |
<P> |
| 752 |
For clusters, this specifies the space between the nodes in the cluster and |
| 753 |
the cluster bounding box. By default, this is 8 points. |
| 754 |
<P> |
| 755 |
For nodes, this attribute specifies space left around the node's label. |
| 756 |
By default, the value is <TT>0.11,0.055</TT>. |
| 757 |
:maxiter:G:int:100 * # nodes(mode == KK)/200(mode == major)/30(mode == sgd)/600(fdp); neato,fdp |
| 758 |
Sets the number of iterations used. |
| 759 |
:mclimit:G:double:1.0; dot |
| 760 |
Multiplicative scale factor used to alter the MinQuit (default = 8) |
| 761 |
and MaxIter (default = 24) parameters used during crossing |
| 762 |
minimization. These correspond to the |
| 763 |
number of tries without improvement before quitting and the |
| 764 |
maximum number of iterations in each pass. |
| 765 |
:mindist:G:double:1.0:0.0; circo |
| 766 |
Specifies the minimum separation between all nodes. |
| 767 |
:minlen:E:int:1:0; dot |
| 768 |
Minimum edge length (rank difference between head and tail). |
| 769 |
:mode:G:string:major; neato |
| 770 |
Technique for optimizing the layout. For neato, if <B>mode</B> is <TT>"major"</TT>, |
| 771 |
neato uses stress majorization. If <B>mode</B> is <TT>"KK"</TT>, |
| 772 |
neato uses a version of the gradient descent method. The only advantage |
| 773 |
to the latter technique is that it is sometimes appreciably faster for |
| 774 |
small (number of nodes < 100) graphs. A significant disadvantage is that |
| 775 |
it may cycle. If <B>mode</B> is <TT>"sgd"</TT>, neato uses a version of the |
| 776 |
stochastic gradient descent method. The advantage of sgd is faster and more |
| 777 |
reliable convergence than both the previous methods, while the disadvantage |
| 778 |
is that it runs in a fixed number of iterations and may require larger |
| 779 |
values of <TT>"maxiter"</TT> in some graphs. |
| 780 |
<P> |
| 781 |
There are two experimental modes in neato, "hier", which adds a top-down |
| 782 |
directionality similar to the layout used in dot, and "ipsep", which |
| 783 |
allows the graph to specify minimum vertical and horizontal distances |
| 784 |
between nodes. (See the <A HREF=#d:sep>sep</A> attribute.) |
| 785 |
<P> |
| 786 |
For sfdp, the default <B>mode</B> is <TT>"spring"</TT>, which corresponds to using |
| 787 |
a spring-electrical model. Setting <B>mode</B> to <TT>"maxent"</TT> causes a similar |
| 788 |
model to be run but one that also takes into account edge lengths specified by the |
| 789 |
<TT>"len"</TT> attribute. |
| 790 |
:model:G:string:shortpath; neato |
| 791 |
This value specifies how the distance matrix is computed for the input |
| 792 |
graph. The distance matrix specifies the ideal distance between every |
| 793 |
pair of nodes. neato attemps to find a layout which best achieves |
| 794 |
these distances. By default, it uses the length of the shortest path, |
| 795 |
where the length of each edge is given by its <A HREF=#d:len>len</A> |
| 796 |
attribute. If <B>model</B> is <TT>"circuit"</TT>, neato uses the |
| 797 |
circuit resistance |
| 798 |
model to compute the distances. This tends to emphasize clusters. If |
| 799 |
<B>model</B> is <TT>"subset"</TT>, neato uses the subset model. This sets the |
| 800 |
edge length to be the number of nodes that are neighbors of exactly one |
| 801 |
of the end points, and then calculates the shortest paths. This helps |
| 802 |
to separate nodes with high degree. |
| 803 |
<P> |
| 804 |
For more control of distances, one can use <TT>model=mds</TT>. In this |
| 805 |
case, the <A HREF=#d:len>len</A> of an edge is used as the ideal distance |
| 806 |
between its vertices. A shortest path calculation is only used for |
| 807 |
pairs of nodes not connected by an edge. Thus, by supplying a complete |
| 808 |
graph, the input can specify all of the relevant distances. |
| 809 |
:mosek:G:bool:false; neato |
| 810 |
If Graphviz is built with MOSEK defined, mode=ipsep and mosek=true, |
| 811 |
the Mosek software (www.mosek.com) is use to solve the ipsep constraints. |
| 812 |
:newrank:G:bool:false; dot |
| 813 |
The original ranking algorithm in dot is recursive on clusters. This can produce fewer ranks |
| 814 |
and a more compact layout, but sometimes at the cost of a head node being place on a higher |
| 815 |
rank than the tail node. It also assumes that a node is not constrained in separate, |
| 816 |
incompatible subgraphs. For example, a node cannot be in a cluster and also be constrained by |
| 817 |
<TT>rank=same</TT> with a node not in the cluster. |
| 818 |
<P> |
| 819 |
If <TT>newrank=true</TT>, the ranking algorithm does a single global ranking, ignoring clusters. |
| 820 |
This allows nodes to be subject to multiple constraints. Rank constraints will usually take |
| 821 |
precedence over edge constraints. |
| 822 |
:nodesep:G:double:0.25:0.02; |
| 823 |
In dot, this specifies the minimum space between two adjacent nodes in the same rank, in inches. |
| 824 |
<P> |
| 825 |
For other layouts, this affects the spacing between loops on a single node, or multiedges between |
| 826 |
a pair of nodes. |
| 827 |
:nojustify:GCNE:bool:false; |
| 828 |
By default, the justification of multi-line labels is done within the |
| 829 |
largest context that makes sense. Thus, in the label of a polygonal |
| 830 |
node, a left-justified line will align with the left side of the node |
| 831 |
(shifted by the prescribed <A HREF=#d:margin>margin</A>). |
| 832 |
In record nodes, left-justified |
| 833 |
line will line up with the left side of the enclosing column of fields. |
| 834 |
If <B>nojustify</B> is <TT>"true"</TT>, multi-line labels will be justified |
| 835 |
in the context of itself. For example, if the attribute is set, |
| 836 |
the first label line is long, and the second is shorter and left-justified, |
| 837 |
the second will align with the left-most character in the first line, |
| 838 |
regardless of how large the node might be. |
| 839 |
:normalize:G:double/bool:false; notdot |
| 840 |
If set, normalize coordinates of final |
| 841 |
layout so that the first point is at the origin, and then rotate the |
| 842 |
layout so that the angle of the first edge is specified by the value of <TT>normalize</TT> in degrees. |
| 843 |
If <TT>normalize</TT> is not a number, it is evaluated as a <TT>bool</TT>, with true |
| 844 |
corresponding to 0 degrees. <B>NOTE:</B> Since the attribute is evaluated first as a number, |
| 845 |
0 and 1 cannot be used for false and true. |
| 846 |
:notranslate:G:bool:false; neato |
| 847 |
By default, the final layout is translated so that the lower-left corner of the bounding box is |
| 848 |
at the origin. This can be annoying if some nodes are pinned or if the user runs <TT>neato -n</TT>. |
| 849 |
To avoid this translation, set <TT>notranslate</TT> to true. |
| 850 |
:nslimit:G:double; dot |
| 851 |
Used to set number of iterations in |
| 852 |
network simplex applications. <B>nslimit</B> is used in |
| 853 |
computing node x coordinates. |
| 854 |
If defined, # iterations = <B>nslimit</B> * # nodes; |
| 855 |
otherwise, # iterations = MAXINT. |
| 856 |
:nslimit1:G:double; dot |
| 857 |
Used to set number of iterations in |
| 858 |
network simplex applications. |
| 859 |
<B>nslimit1</B> is used for ranking nodes. |
| 860 |
If defined, # iterations = <B>nslimit1</B> * # nodes; |
| 861 |
otherwise, # iterations = MAXINT. |
| 862 |
:ordering:GN:string:""; dot |
| 863 |
If the value of the attribute is "out", then |
| 864 |
the outedges of a node, that is, edges with the node as its tail node, |
| 865 |
must appear |
| 866 |
left-to-right in the same order in which they are defined in |
| 867 |
the input. |
| 868 |
If the value of the attribute is "in", then |
| 869 |
the inedges of a node must appear |
| 870 |
left-to-right in the same order in which they are defined in |
| 871 |
the input. |
| 872 |
If defined as a graph or subgraph attribute, the value is applied to all nodes |
| 873 |
in the graph or subgraph. Note that the graph attribute takes |
| 874 |
precedence over the node attribute. |
| 875 |
:orientation:NG:double/string:0.0/"":360.0; |
| 876 |
When used on nodes: Angle, in degrees, used to rotate polygon node shapes. For any number of polygon sides, 0 degrees rotation results in a flat base. |
| 877 |
<P> |
| 878 |
When used on graphs: If <CODE>"[lL]*"</CODE>, set graph orientation to landscape. |
| 879 |
Used only if <A HREF=#d:rotate><B>rotate</B></A> is not defined. |
| 880 |
:outputorder:G:outputMode:breadthfirst; |
| 881 |
Specify order in which nodes and edges are drawn. |
| 882 |
:overlap:G:string/bool:true; notdot |
| 883 |
Determines if and how node overlaps should be removed. Nodes are first |
| 884 |
enlarged using the <A HREF=#d:sep><B>sep</B></A> attribute. |
| 885 |
If "true" , overlaps are retained. |
| 886 |
If the value is "scale", overlaps are removed by uniformly scaling in x and y. |
| 887 |
If the value converts to "false", and it is available, Prism, a proximity graph-based algorithm, is |
| 888 |
used to remove node overlaps. |
| 889 |
This can also be invoked explicitly with "overlap=prism". |
| 890 |
This technique starts with a |
| 891 |
small scaling up, controlled by the |
| 892 |
<A HREF="#d:overlap_scaling"><TT>overlap_scaling</TT></A> attribute, |
| 893 |
which can remove a significant portion of the overlap. |
| 894 |
The prism option also accepts an optional non-negative integer suffix. |
| 895 |
This can be used to control the number of attempts made at overlap |
| 896 |
removal. By default, <TT>overlap="prism"</TT> is equivalent to |
| 897 |
<TT>overlap="prism1000"</TT>. Setting <TT>overlap="prism0"</TT> |
| 898 |
causes only the scaling phase to be run. |
| 899 |
<P> |
| 900 |
If Prism is not available, or the version of Graphviz is earlier than 2.28, "overlap=false" |
| 901 |
uses a Voronoi-based technique. |
| 902 |
This can always be invoked explicitly with "overlap=voronoi". |
| 903 |
<P> |
| 904 |
If the value is "scalexy", x and y are separately |
| 905 |
scaled to remove overlaps. |
| 906 |
<P> |
| 907 |
If the value is "compress", the layout will be scaled down as much as |
| 908 |
possible without introducing any overlaps, obviously assuming there are |
| 909 |
none to begin with. |
| 910 |
<P> |
| 911 |
<B>N.B.</B>The remaining allowed values of <TT>overlap</TT> |
| 912 |
correspond to algorithms which, at present, can produce bad aspect ratios. |
| 913 |
In addition, we deprecate the use of the "ortho*" and "portho*". |
| 914 |
<P> |
| 915 |
If the value is "vpsc", overlap removal is done as a |
| 916 |
quadratic optimization to minimize node displacement while removing |
| 917 |
node overlaps. |
| 918 |
<P> |
| 919 |
If the value is "orthoxy" or "orthoyx", overlaps |
| 920 |
are moved by optimizing two constraint problems, one for the x axis and |
| 921 |
one for the y. The suffix indicates which axis is processed first. |
| 922 |
If the value is "ortho", the technique is similar to "orthoxy" except a |
| 923 |
heuristic is used to reduce the bias between the two passes. |
| 924 |
If the value is "ortho_yx", the technique is the same as "ortho", except |
| 925 |
the roles of x and y are reversed. |
| 926 |
The values "portho", "porthoxy", "porthoxy", and "portho_yx" are similar |
| 927 |
to the previous four, except only pseudo-orthogonal ordering is |
| 928 |
enforced. |
| 929 |
<P> |
| 930 |
If the layout is done by neato with <A HREF=#d:mode>mode</A>="ipsep", |
| 931 |
then one can use <TT>overlap=ipsep</TT>. |
| 932 |
In this case, the overlap removal constraints are |
| 933 |
incorporated into the layout algorithm itself. |
| 934 |
N.B. At present, this only supports one level of clustering. |
| 935 |
<P> |
| 936 |
Except for fdp and sfdp, the layouts assume <TT>overlap="true"</TT> as the default. |
| 937 |
Fdp first uses a number of passes using a built-in, force-directed technique |
| 938 |
to try to remove overlaps. Thus, fdp accepts <B>overlap</B> with an integer |
| 939 |
prefix followed by a colon, specifying the number of tries. If there is |
| 940 |
no prefix, no initial tries will be performed. If there is nothing following |
| 941 |
a colon, none of the above methods will be attempted. By default, fdp |
| 942 |
uses <TT>overlap="9:prism"</TT>. Note that <TT>overlap="true"</TT>, |
| 943 |
<TT>overlap="0:true"</TT> and <TT>overlap="0:"</TT> all turn off all overlap |
| 944 |
removal. |
| 945 |
<P> |
| 946 |
By default, sfdp uses <TT>overlap="prism0"</TT>. |
| 947 |
<P> |
| 948 |
Except for the Voronoi and prism methods, all of these transforms preserve the |
| 949 |
orthogonal ordering of the original layout. That is, if the x coordinates |
| 950 |
of two nodes are originally the same, they will remain the same, and if |
| 951 |
the x coordinate of one node is originally less than the x coordinate of |
| 952 |
another, this relation will still hold in the transformed layout. The |
| 953 |
similar properties hold for the y coordinates. |
| 954 |
This is not quite true for the "porth*" cases. For these, orthogonal |
| 955 |
ordering is only preserved among nodes related by an edge. |
| 956 |
:overlap_scaling:G:double:-4:-1.0e10; prism |
| 957 |
When <TT>overlap=prism</TT>, the layout is scaled by this factor, thereby |
| 958 |
removing a fair amount of node overlap, and making node overlap removal |
| 959 |
faster and better able to retain the graph's shape. |
| 960 |
<P> |
| 961 |
If <TT>overlap_scaling</TT> is negative, the layout is scaled by |
| 962 |
<TT>-1*overlap_scaling</TT> times the average label size. |
| 963 |
If <TT>overlap_scaling</TT> is positive, the layout is scaled by |
| 964 |
<TT>overlap_scaling</TT>. |
| 965 |
If <TT>overlap_scaling</TT> is zero, no scaling is done. |
| 966 |
:overlap_shrink:G:bool:true; prism |
| 967 |
If true, the overlap removal algorithm will perform a compression pass to reduce the |
| 968 |
size of the layout. |
| 969 |
:pack:G:bool/int:false; |
| 970 |
This is true if the value of pack is "true" (case-insensitive) or a |
| 971 |
non-negative integer. If true, each connected component of the graph is |
| 972 |
laid out separately, and then the graphs are packed together. |
| 973 |
If pack has an integral value, this is used as the size, |
| 974 |
in <A HREF=#points>points</A>, of |
| 975 |
a margin around each part; otherwise, a default margin of 8 is used. |
| 976 |
If pack is interpreted as false, the entire graph is laid out together. |
| 977 |
The granularity and method of packing is influenced by the |
| 978 |
<A HREF=#d:packmode>packmode</A> attribute. |
| 979 |
<P> |
| 980 |
For layouts which always do packing, such a twopi, the <B>pack</B> |
| 981 |
attribute is just used to set the margin. |
| 982 |
:packmode:G:packMode:node; |
| 983 |
This indicates how connected components should be packed |
| 984 |
(cf. <A HREF=#k:packMode>packMode</A>). Note that defining |
| 985 |
<B>packmode</B> will automatically turn on packing as though one had |
| 986 |
set <B>pack=true</B>. |
| 987 |
:pad:G:double/point:0.0555 (4 points); |
| 988 |
The pad attribute specifies how much, in inches, to extend the |
| 989 |
drawing area around the minimal area needed to draw the graph. |
| 990 |
If the pad is a single double, both the x and y pad values are set |
| 991 |
equal to the given value. This area is part of the |
| 992 |
drawing and will be filled with the background color, if appropriate. |
| 993 |
<P> |
| 994 |
Normally, a small pad is used for aesthetic reasons, especially when |
| 995 |
a background color is used, to avoid having nodes and edges abutting |
| 996 |
the boundary of the drawn region. |
| 997 |
:page:G:double/point; |
| 998 |
Width and height of output pages, in inches. If only a single value |
| 999 |
is given, this is used for both the width and height. |
| 1000 |
<P> |
| 1001 |
If this is set and is |
| 1002 |
smaller than the size of the layout, a rectangular array of pages of |
| 1003 |
the specified page size is overlaid on the layout, with origins |
| 1004 |
aligned in the lower-left corner, thereby partitioning the layout |
| 1005 |
into pages. The pages are then produced one at a time, in |
| 1006 |
<A HREF=#d:pagedir>pagedir</A> order. |
| 1007 |
<P> |
| 1008 |
At present, this only works for PostScript output. For other types of |
| 1009 |
output, one should use another tool to split the output into multiple |
| 1010 |
output files. Or use the <A HREF=#d:viewport>viewport</A> to generate |
| 1011 |
multiple files. |
| 1012 |
:pagedir:G:pagedir:BL; |
| 1013 |
If the <A HREF=#d:page>page</A> attribute is set and applicable, |
| 1014 |
this attribute specifies the order in which the pages are emitted. |
| 1015 |
This is limited to one of the 8 row or column major orders. |
| 1016 |
:pencolor:C:color:black; |
| 1017 |
Color used to draw the bounding box around a cluster. |
| 1018 |
If <B>pencolor</B> is not defined, <A HREF=#d:color><B>color</B></A> is |
| 1019 |
used. If this is not defined, <A HREF=#d:bgcolor>bgcolor</A> is used. |
| 1020 |
If this is not defined, the default is used. |
| 1021 |
<P> |
| 1022 |
Note that a cluster inherits the root graph's attributes if defined. |
| 1023 |
Thus, if the root graph has defined a <B>pencolor</B>, this will override a |
| 1024 |
<B>color</B> or <B>bgcolor</B> attribute set for the cluster. |
| 1025 |
:penwidth:CNE:double:1.0:0.0; |
| 1026 |
Specifies the width of the pen, in points, used to draw lines and curves, |
| 1027 |
including the boundaries of edges and clusters. The value is inherited |
| 1028 |
by subclusters. |
| 1029 |
It has no effect on text. |
| 1030 |
<P> |
| 1031 |
Previous to 31 January 2008, the effect of <TT>penwidth=<I>W</I></TT> |
| 1032 |
was achieved by including <TT>setlinewidth(<I>W</I>)</TT> |
| 1033 |
as part of a <A HREF=#d:style><TT>style</TT></A> specification. |
| 1034 |
If both are used, <TT>penwidth</TT> will be used. |
| 1035 |
:peripheries:NC:int:shape default(nodes)/1(clusters):0; |
| 1036 |
Set number of peripheries used in polygonal shapes and cluster |
| 1037 |
boundaries. Note that |
| 1038 |
<A HREF=shapes.html#epsf>user-defined shapes</A> are treated as a |
| 1039 |
form of box shape, so the default |
| 1040 |
peripheries value is 1 and the user-defined shape will be drawn in |
| 1041 |
a bounding rectangle. Setting <TT>peripheries=0</TT> will turn this off. |
| 1042 |
Also, 1 is the maximum peripheries value for clusters. |
| 1043 |
:pin:N:bool:false; neato,fdp |
| 1044 |
If true and the node has a pos attribute on input, neato or fdp prevents the |
| 1045 |
node from moving from the input position. This property can also be specified |
| 1046 |
in the pos attribute itself (cf. the <A HREF=#k:point>point</A> type). |
| 1047 |
<P> |
| 1048 |
<B>Note:</B> Due to an artifact of the implementation, |
| 1049 |
previous to 27 Feb 2014, final coordinates |
| 1050 |
are translated to the origin. Thus, if you look at the output coordinates |
| 1051 |
given in the (x)dot or plain format, pinned nodes will not have the same |
| 1052 |
output coordinates as were given on input. If this is important, a |
| 1053 |
simple workaround is to maintain the coordinates of a pinned node. The vector |
| 1054 |
difference between the old and new coordinates will give the translation, |
| 1055 |
which can then be subtracted from all of the appropriate coordinates. |
| 1056 |
<P> |
| 1057 |
After 27 Feb 2014, this translation can be avoided in neato by setting the |
| 1058 |
<A HREF="#d:notranslate">notranslate</A> to TRUE. However, if the graph |
| 1059 |
specifies <A HREF="#d:overlap">node overlap removal</A> or a change in |
| 1060 |
<A HREF="#d:ratio">aspect ratio</A>, node coordinates may still change. |
| 1061 |
:pos:EN:point/splineType; |
| 1062 |
Position of node, or spline control points. |
| 1063 |
For nodes, the position indicates the center of the node. |
| 1064 |
On output, the coordinates are in <A HREF=#points>points</A>. |
| 1065 |
<P> |
| 1066 |
In neato and fdp, pos can be used to set the initial position of a node. |
| 1067 |
By default, the coordinates are assumed to be in inches. However, the |
| 1068 |
<A HREF=command.html#d:s>-s</A> command line flag can be used to specify |
| 1069 |
different units. As the output coordinates are in points, |
| 1070 |
feeding the output of a graph laid out by a Graphviz program into |
| 1071 |
neato or fdp will almost always require the -s flag. |
| 1072 |
<P> |
| 1073 |
When the <A HREF=command.html#d:n>-n</A> command line flag is used with |
| 1074 |
neato, it is assumed the positions have been set by one of the layout |
| 1075 |
programs, and are therefore in points. Thus, <TT>neato -n</TT> can accept |
| 1076 |
input correctly without requiring a <TT>-s</TT> flag and, in fact, |
| 1077 |
ignores any such flag. |
| 1078 |
:quadtree:G:quadType/bool:normal; sfdp |
| 1079 |
Quadtree scheme to use. |
| 1080 |
<P> |
| 1081 |
A TRUE bool value corresponds to "normal"; |
| 1082 |
a FALSE bool value corresponds to "none". |
| 1083 |
As a slight exception to the normal interpretation of bool, |
| 1084 |
a value of "2" corresponds to "fast". |
| 1085 |
:quantum:G:double:0.0:0.0; |
| 1086 |
If <B>quantum</B> > 0.0, node label dimensions |
| 1087 |
will be rounded to integral multiples of the quantum. |
| 1088 |
:rank:S:rankType:; dot |
| 1089 |
Rank constraints on the nodes in a subgraph. |
| 1090 |
If <B>rank</B>="same", all nodes are placed on the same rank. |
| 1091 |
If <B>rank</B>="min", all nodes are placed on the minimum rank. |
| 1092 |
If <B>rank</B>="source", all nodes are placed on the minimum rank, and |
| 1093 |
the only nodes on the minimum rank belong to some subgraph whose |
| 1094 |
rank attribute is "source" or "min". |
| 1095 |
Analogous criteria hold for <B>rank</B>="max" and <B>rank</B>="sink". |
| 1096 |
(Note: the |
| 1097 |
minimum rank is topmost or leftmost, and the maximum rank is bottommost |
| 1098 |
or rightmost.) |
| 1099 |
:rankdir:G:rankdir:TB; dot |
| 1100 |
Sets direction of graph layout. For example, if <B>rankdir</B>="LR", |
| 1101 |
and barring cycles, an edge <CODE>T -> H;</CODE> will go |
| 1102 |
from left to right. By default, graphs are laid out from top to bottom. |
| 1103 |
<P> |
| 1104 |
This attribute also has a side-effect in determining how record nodes |
| 1105 |
are interpreted. See <A HREF="shapes.html#record">record shapes</A>. |
| 1106 |
:ranksep:G:double/doubleList:0.5(dot)/1.0(twopi):0.02; dot,twopi |
| 1107 |
In dot, this gives the desired rank separation, in inches. This is |
| 1108 |
the minimum vertical distance between the bottom of the nodes in one |
| 1109 |
rank and the tops of nodes in the next. If the value |
| 1110 |
contains "equally", the centers of all ranks are spaced equally apart. |
| 1111 |
Note that both |
| 1112 |
settings are possible, e.g., ranksep = "1.2 equally". |
| 1113 |
<P> |
| 1114 |
In twopi, this attribute specifies the radial separation of concentric circles. |
| 1115 |
For twopi, <TT>ranksep</TT> can also be a list of doubles. The first double specifies |
| 1116 |
the radius of the inner circle; the second double specifies the increase in |
| 1117 |
radius from the first circle to the second; etc. If there are more circles than |
| 1118 |
numbers, the last number is used as the increment for the remainder. |
| 1119 |
:ratio:G:double/string; |
| 1120 |
Sets the aspect ratio (drawing height/drawing width) for the drawing. |
| 1121 |
Note that this is adjusted before |
| 1122 |
the <A HREF=#d:size><B>size</B></A> attribute constraints are enforced. |
| 1123 |
In addition, the calculations usually ignore the node sizes, so the |
| 1124 |
final drawing size may only approximate what is desired. |
| 1125 |
<P> |
| 1126 |
If <B>ratio</B> is numeric, it is taken as the desired aspect ratio. |
| 1127 |
Then, if the actual aspect ratio is less than the desired ratio, |
| 1128 |
the drawing height is scaled up to achieve the |
| 1129 |
desired ratio; if the actual ratio is greater than that desired ratio, |
| 1130 |
the drawing width is scaled up. |
| 1131 |
<P> |
| 1132 |
If <B>ratio</B> = "fill" and the <A HREF=#d:size><B>size</B></A> |
| 1133 |
attribute is set, node positions are scaled, separately in both x |
| 1134 |
and y, so that the final drawing exactly fills the specified size. |
| 1135 |
If both <A HREF=#d:size><B>size</B></A> values exceed the width |
| 1136 |
and height of the drawing, then both coordinate values of each |
| 1137 |
node are scaled up accordingly. However, if either size dimension |
| 1138 |
is smaller than the corresponding dimension in the drawing, one |
| 1139 |
dimension is scaled up so that the final drawing has the same aspect |
| 1140 |
ratio as specified by <A HREF=#d:size><B>size</B></A>. |
| 1141 |
Then, when rendered, the layout will be |
| 1142 |
scaled down uniformly in both dimensions to fit the given |
| 1143 |
<A HREF=#d:size><B>size</B></A>, which may cause nodes and text |
| 1144 |
to shrink as well. This may not be what the user |
| 1145 |
wants, but it avoids the hard problem of how to reposition the |
| 1146 |
nodes in an acceptable fashion to reduce the drawing size. |
| 1147 |
<P> |
| 1148 |
If <B>ratio</B> = "compress" and the <A HREF=#d:size><B>size</B></A> |
| 1149 |
attribute is set, dot attempts to compress the initial layout to fit |
| 1150 |
in the given size. This achieves a tighter packing of nodes but |
| 1151 |
reduces the balance and symmetry. This feature only works in dot. |
| 1152 |
<P> |
| 1153 |
If <B>ratio</B> = "expand", the <A HREF=#d:size><B>size</B></A> |
| 1154 |
attribute is set, and both the width and the height of the graph are |
| 1155 |
less than the value in <A HREF=#d:size><B>size</B></A>, node positions are scaled |
| 1156 |
uniformly until at least |
| 1157 |
one dimension fits <A HREF=#d:size><B>size</B></A> exactly. |
| 1158 |
Note that this is distinct from using <A HREF=#d:size><B>size</B></A> as the |
| 1159 |
desired size, as here the drawing is expanded before edges are generated and |
| 1160 |
all node and text sizes remain unchanged. |
| 1161 |
<P> |
| 1162 |
If <B>ratio</B> = "auto", the <A HREF=#d:page><B>page</B></A> |
| 1163 |
attribute is set and the graph cannot be drawn on a single page, |
| 1164 |
then <A HREF=#d:size><B>size</B></A> is set to an ``ideal'' value. |
| 1165 |
In particular, the size in a given dimension will be the smallest integral |
| 1166 |
multiple of the page size in that dimension which is at least half the |
| 1167 |
current size. The two dimensions are then scaled independently to the |
| 1168 |
new size. This feature only works in dot. |
| 1169 |
:rects:N:rect; write |
| 1170 |
Rectangles for fields of records, <A HREF=#points>in points</A>. |
| 1171 |
:regular:N:bool:false; |
| 1172 |
If true, force polygon to be regular, i.e., the vertices of the |
| 1173 |
polygon will lie on a circle whose center is the center of the node. |
| 1174 |
:remincross:G:bool:true; dot |
| 1175 |
If true and there are multiple clusters, run crossing |
| 1176 |
minimization a second time. |
| 1177 |
:repulsiveforce:G:double:1.0:0.0; sfdp |
| 1178 |
The power of the repulsive force used in an extended Fruchterman-Reingold |
| 1179 |
force directed model. Values larger than 1 tend to reduce |
| 1180 |
the warping effect at the expense of less clustering. |
| 1181 |
:resolution:G:double:96.0/0.0; bitmap output,svg |
| 1182 |
This is a synonym for the <A HREF=#d:dpi>dpi</A> attribute. |
| 1183 |
:root:GN:string/bool:<none>(graphs)/false(nodes); twopi,circo |
| 1184 |
This specifies nodes to be used as the center of the |
| 1185 |
layout and the root of the generated spanning tree. As a graph attribute, |
| 1186 |
this gives the name of the node. As a node attribute, it |
| 1187 |
specifies that the node should be used as a central node. In twopi, |
| 1188 |
this will actually be the central node. In circo, the block containing |
| 1189 |
the node will be central in the drawing of its connected component. |
| 1190 |
If not defined, |
| 1191 |
twopi will pick a most central node, and circo will pick a random node. |
| 1192 |
<P> |
| 1193 |
If the root attribute is defined as the empty string, twopi will reset it |
| 1194 |
to name of the node picked as the root node. |
| 1195 |
<P> |
| 1196 |
For twopi, it is possible to have multiple roots, presumably one for each |
| 1197 |
component. If more than one node in a component is marked as the root, twopi |
| 1198 |
will pick one. |
| 1199 |
:rotate:G:int:0; |
| 1200 |
If 90, set drawing orientation to landscape. |
| 1201 |
:rotation:G:double:0; sfdp |
| 1202 |
Causes the final layout to be rotated counter-clockwise by the specified number of degrees. |
| 1203 |
:samehead:E:string:""; dot |
| 1204 |
Edges with the same head and the same <B>samehead</B> value are aimed |
| 1205 |
at the same point on the head. This has no effect on loops. |
| 1206 |
Each node can have at most 5 unique samehead values. |
| 1207 |
See <A HREF=#h:undir_note>limitation</A>. |
| 1208 |
:sametail:E:string:""; dot |
| 1209 |
Edges with the same tail and the same <B>sametail</B> value are aimed |
| 1210 |
at the same point on the tail. This has no effect on loops. |
| 1211 |
Each node can have at most 5 unique sametail values. |
| 1212 |
See <A HREF=#h:undir_note>limitation</A>. |
| 1213 |
:samplepoints:N:int:8(output)/20(overlap and image maps); |
| 1214 |
If the input graph defines the <A HREF=#d:vertices><B>vertices</B></A> |
| 1215 |
attribute, and output is dot or xdot, this gives |
| 1216 |
the number of points used for a node whose shape is a circle or ellipse. |
| 1217 |
It plays the same role in neato, when adjusting the layout to avoid |
| 1218 |
overlapping nodes, and in image maps. |
| 1219 |
:scale:G:double/point; notdot |
| 1220 |
If set, after the initial layout, the layout is scaled by the given factors. |
| 1221 |
If only a single number is given, this is used for both factors. |
| 1222 |
:searchsize:G:int:30; dot |
| 1223 |
During network simplex, maximum number of edges with negative cut values |
| 1224 |
to search when looking for one with minimum cut value. |
| 1225 |
:sep:G:addDouble/addPoint:+4; notdot |
| 1226 |
Specifies margin to leave around nodes when removing node overlap. |
| 1227 |
This guarantees a minimal non-zero distance between nodes. |
| 1228 |
<P> |
| 1229 |
If the attribute begins with a plus sign '+', an additive margin is |
| 1230 |
specified. That is, "+w,h" causes the node's bounding box to be increased |
| 1231 |
by w |
| 1232 |
points on the left and right sides, and by h points on the top and bottom. |
| 1233 |
Without a plus sign, the node is scaled by 1 + w in the x coordinate |
| 1234 |
and 1 + h in the y coordinate. |
| 1235 |
<P> |
| 1236 |
If only a single number is given, this is used for both dimensions. |
| 1237 |
<P> |
| 1238 |
If unset but <A HREF=#d:esep>esep</A> is defined, the <tt>sep</tt> values |
| 1239 |
will be set to the <tt>esep</tt> values divided by <tt>0.8</tt>. |
| 1240 |
If <tt>esep</tt> is unset, the default value is used. |
| 1241 |
:shape:N:shape:ellipse; |
| 1242 |
Set the shape of a node. |
| 1243 |
:shapefile:N:string:""; |
| 1244 |
(Deprecated) If defined, shapefile specifies a file containing user-supplied node content. |
| 1245 |
The <A HREF=#d:shape><B>shape</B></A> of the node is set to box. |
| 1246 |
The image in the shapefile must be |
| 1247 |
rectangular. The image formats supported as well as the precise semantics of |
| 1248 |
how the file is used depends on the |
| 1249 |
<A HREF="output.html">output format</A>. For further details, see |
| 1250 |
<A HREF=output.html#d:image_fmts>Image Formats</A> and |
| 1251 |
<A HREF="../../../faq/#ext_image">External PostScript files</A>. |
| 1252 |
<P> |
| 1253 |
There is one exception to this usage. |
| 1254 |
If <B>shape</B> is set to "epsf", shapefile gives |
| 1255 |
a filename containing a definition of the node in PostScript. |
| 1256 |
The graphics defined must be contain all of the |
| 1257 |
node content, including any desired boundaries. |
| 1258 |
For further details, see |
| 1259 |
<A HREF="../../../faq/#ext_ps_file"> |
| 1260 |
External PostScript files</A>. |
| 1261 |
:showboxes:ENG:int:0:0; dot |
| 1262 |
Print guide boxes in PostScript at the beginning of |
| 1263 |
routesplines if 1, or at the end if 2. (Debugging, TB mode only!) |
| 1264 |
:sides:N:int:4:0; |
| 1265 |
Number of sides if <A HREF=#d:shape><B>shape</B></A>=polygon. |
| 1266 |
:size:G:double/point; |
| 1267 |
Maximum width and height of drawing, in inches. |
| 1268 |
If only a single number is given, this is used for both the width |
| 1269 |
and the height. |
| 1270 |
<P> |
| 1271 |
If defined and the drawing is larger than the given size, |
| 1272 |
the drawing is uniformly |
| 1273 |
scaled down so that it fits within the given size. |
| 1274 |
<P> |
| 1275 |
If <TT>size</TT> ends in an exclamation point (<TT>!</TT>), |
| 1276 |
then it is taken to be |
| 1277 |
the desired size. In this case, if both dimensions of the drawing are |
| 1278 |
less than <TT>size</TT>, the drawing is scaled up uniformly until at |
| 1279 |
least one dimension equals its dimension in <TT>size</TT>. |
| 1280 |
<P> |
| 1281 |
Note that there is some interaction between the <B>size</B> and |
| 1282 |
<A HREF=#d:ratio><B>ratio</B></A> attributes. |
| 1283 |
:skew:N:double:0.0:-100.0; |
| 1284 |
Skew factor for <A HREF=#d:shape><B>shape</B></A>=polygon. Positive values |
| 1285 |
skew top of polygon to right; negative to left. |
| 1286 |
:smoothing:G:smoothType:"none"; sfdp |
| 1287 |
Specifies a post-processing step used to smooth out an uneven distribution |
| 1288 |
of nodes. |
| 1289 |
:sortv:GCN:int:0:0; |
| 1290 |
If <A HREF="#d:packmode">packmode</A> indicates an array packing, |
| 1291 |
this attribute specifies an |
| 1292 |
insertion order among the components, with smaller values inserted first. |
| 1293 |
:splines:G:bool/string; |
| 1294 |
Controls how, and if, edges are represented. If true, edges are drawn as |
| 1295 |
splines routed around nodes; if false, edges are drawn as line segments. |
| 1296 |
If set to <tt>none</tt> or "", no edges are drawn at all. |
| 1297 |
<P> |
| 1298 |
(1 March 2007) The values <TT>line</TT> and <TT>spline</TT> can be |
| 1299 |
used as synonyms for <TT>false</TT> and <TT>true</TT>, respectively. |
| 1300 |
In addition, the value <TT>polyline</TT> specifies that edges should be |
| 1301 |
drawn as polylines. |
| 1302 |
<P> |
| 1303 |
(28 Sep 2010) The value <TT>ortho</TT> specifies edges should be |
| 1304 |
routed as polylines of axis-aligned segments. Currently, the routing |
| 1305 |
does not handle ports or, in dot, edge labels. |
| 1306 |
<P> |
| 1307 |
(25 Sep 2012) The value <TT>curved</TT> specifies edges should be |
| 1308 |
drawn as curved arcs. |
| 1309 |
<P> |
| 1310 |
<TABLE> |
| 1311 |
<TR> |
| 1312 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_none.png"> |
| 1313 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_line.png"> |
| 1314 |
</TR> |
| 1315 |
<TR> |
| 1316 |
<TD ALIGN="center">splines=none<BR>splines="" |
| 1317 |
<TD ALIGN="center">splines=line<BR>splines=false |
| 1318 |
</TR> |
| 1319 |
<TR> |
| 1320 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_polyline.png"> |
| 1321 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_curved.png"> |
| 1322 |
</TR> |
| 1323 |
<TR> |
| 1324 |
<TD ALIGN="center">splines=polyline |
| 1325 |
<TD ALIGN="center">splines=curved |
| 1326 |
</TR> |
| 1327 |
<TR> |
| 1328 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_ortho.png"> |
| 1329 |
<TD><IMG WIDTH="200" VSPACE="10" HSPACE="10" SRC="spline_spline.png"> |
| 1330 |
</TR> |
| 1331 |
<TR> |
| 1332 |
<TD ALIGN="center">splines=ortho |
| 1333 |
<TD ALIGN="center">splines=spline<BR>splines=true |
| 1334 |
</TR> |
| 1335 |
</TABLE> |
| 1336 |
|
| 1337 |
<P> |
| 1338 |
By default, the attribute is unset. How this is interpreted depends on |
| 1339 |
the layout. For dot, the default is to draw edges as splines. For all |
| 1340 |
other layouts, the default is to draw edges as line segments. Note that |
| 1341 |
for these latter layouts, if <TT>splines="true"</TT>, this |
| 1342 |
requires non-overlapping nodes (cf. <A HREF=#d:overlap><B>overlap</B></A>). |
| 1343 |
If fdp is used for layout and <TT>splines="compound"</TT>, then the edges are |
| 1344 |
drawn to avoid clusters as well as nodes. |
| 1345 |
:start:G:startType:""; neato,fdp |
| 1346 |
Parameter used to determine the initial layout of nodes. If unset, the |
| 1347 |
nodes are randomly placed in a unit square with |
| 1348 |
the same seed is always used for the random number generator, so the |
| 1349 |
initial placement is repeatable. |
| 1350 |
:style:ENCG:style:""; |
| 1351 |
Set style information for components of the graph. For cluster subgraphs, if <TT>style="filled"</TT>, the |
| 1352 |
cluster box's background is filled. |
| 1353 |
<P> |
| 1354 |
If the default style attribute has been set for a component, an individual component can use |
| 1355 |
<TT>style=""</TT> to revert to the normal default. For example, if the graph has |
| 1356 |
<P> |
| 1357 |
<TT>edge [style="invis"]</TT> |
| 1358 |
<P> |
| 1359 |
making all edges invisible, a specific edge can overrride this via: |
| 1360 |
<P> |
| 1361 |
<TT>a -> b [style=""]</TT> |
| 1362 |
<P> |
| 1363 |
Of course, the component can also explicitly set its <TT>style</TT> attribute to the desired value. |
| 1364 |
:stylesheet:G:string:""; svg |
| 1365 |
A URL or pathname specifying an XML style sheet, used in SVG output. Combine |
| 1366 |
with <a href="#d:class">class</a> to style elements using CSS selectors. |
| 1367 |
:tailURL:E:escString:""; map,svg |
| 1368 |
If <B>tailURL</B> is defined, it is |
| 1369 |
output as part of the tail label of the edge. |
| 1370 |
Also, this value is used near the tail node, overriding any |
| 1371 |
<A HREF=#d:URL>URL</A> value. |
| 1372 |
See <A HREF=#h:undir_note>limitation</A>. |
| 1373 |
:tailclip:E:bool:true; |
| 1374 |
If true, the tail of an edge is clipped to the boundary of the tail node; |
| 1375 |
otherwise, the end of the edge goes to the center of the node, or the |
| 1376 |
center of a port, if applicable. |
| 1377 |
:tailhref:E:escString:""; map,svg |
| 1378 |
Synonym for <A HREF=#d:tailURL>tailURL</A>. |
| 1379 |
:taillabel:E:lblString:""; |
| 1380 |
Text label to be placed near tail of edge. |
| 1381 |
See <A HREF=#h:undir_note>limitation</A>. |
| 1382 |
:tailport:E:portPos:center; |
| 1383 |
Indicates where on the tail node to attach the tail of the edge. |
| 1384 |
See <A HREF=#h:undir_note>limitation</A>. |
| 1385 |
:tail_lp:E:point; write |
| 1386 |
Position of an edge's tail label, <A HREF=#points>in points</A>. |
| 1387 |
The position indicates the center of the label. |
| 1388 |
:tailtarget:E:escString:<none>; map,svg |
| 1389 |
If the edge has a <A HREF=#d:tailURL>tailURL</A>, |
| 1390 |
this attribute determines which window of the |
| 1391 |
browser is used |
| 1392 |
for the URL. Setting it to "_graphviz" will open a new window if it |
| 1393 |
doesn't already exist, or reuse it if it does. |
| 1394 |
If undefined, the value of the <A HREF=#d:target>target</A> is used. |
| 1395 |
:tailtooltip:E:escString:""; cmap,svg |
| 1396 |
Tooltip annotation attached to the tail of an edge. This is used only |
| 1397 |
if the edge has a <A HREF=#d:tailURL>tailURL</A> attribute. |
| 1398 |
:target:ENGC:escString/string:<none>; map,svg |
| 1399 |
If the object has a URL, this attribute determines which window |
| 1400 |
of the browser is used for the URL. |
| 1401 |
See <A HREF="http://www.w3.org/TR/html401/present/frames.html#adef-target">W3C documentation</A>. |
| 1402 |
:tooltip:NEC:escString:""; cmap,svg |
| 1403 |
Tooltip annotation attached to the node or edge. If unset, Graphviz |
| 1404 |
will use the object's <A HREF=#d:label>label</A> if defined. |
| 1405 |
Note that if the label is a record specification or an HTML-like |
| 1406 |
label, the resulting tooltip may be unhelpful. In this case, if |
| 1407 |
tooltips will be generated, the user should set a <TT>tooltip</TT> |
| 1408 |
attribute explicitly. |
| 1409 |
#toplabel:N:string:""; |
| 1410 |
# Additional label near top of nodes of shape M*. |
| 1411 |
:truecolor:G:bool:; bitmap output |
| 1412 |
If set explicitly to true or false, the value determines whether or not |
| 1413 |
internal bitmap rendering relies on a truecolor color model or uses |
| 1414 |
a color palette. |
| 1415 |
If the attribute is unset, truecolor is not used |
| 1416 |
unless there is a <A HREF=#d:shapefile>shapefile</A> property |
| 1417 |
for some node in the graph. |
| 1418 |
The output model will use the input model when possible. |
| 1419 |
<P> |
| 1420 |
Use of color palettes results in less memory usage during creation of the |
| 1421 |
bitmaps and smaller output files. |
| 1422 |
<P> |
| 1423 |
Usually, the only time it is necessary to specify the truecolor model |
| 1424 |
is if the graph uses more than 256 colors. |
| 1425 |
However, if one uses <A HREF=#d:bgcolor>bgcolor</A>=transparent with |
| 1426 |
a color palette, font |
| 1427 |
antialiasing can show up as a fuzzy white area around characters. |
| 1428 |
Using <B>truecolor</B>=true avoids this problem. |
| 1429 |
:xdotversion:G:string:; xdot |
| 1430 |
For xdot output, if this attribute is set, this determines the version of xdot used in output. |
| 1431 |
If not set, the attribute will be set to the xdot version used for output. |
| 1432 |
:vertices:N:pointList; write |
| 1433 |
If the input graph defines this attribute, the node is polygonal, |
| 1434 |
and output is dot or xdot, this attribute provides the |
| 1435 |
coordinates of the vertices of the node's polygon, in inches. |
| 1436 |
If the node is an ellipse or circle, the |
| 1437 |
<A HREF=#d:samplepoints>samplepoints</A> attribute affects |
| 1438 |
the output. |
| 1439 |
:viewport:G:viewPort:""; |
| 1440 |
Clipping window on final drawing. Note that this attribute supersedes any |
| 1441 |
<A HREF="#d:size">size</A> attribute. The width and height of the viewport specify |
| 1442 |
precisely the final size of the output. |
| 1443 |
:voro_margin:G:double:0.05:0.0; notdot |
| 1444 |
Factor to scale up drawing to allow margin for expansion in |
| 1445 |
Voronoi technique. dim' = (1+2*margin)*dim. |
| 1446 |
#voro_pmargin:G:double; neato |
| 1447 |
# Obsolete, replaced by sep |
| 1448 |
#w:E:double:1.0; neato |
| 1449 |
# Redundant definition of weight in neato, cf. bug 9. |
| 1450 |
:weight:E:int/double:1:0(dot,twopi)/1(neato,fdp); |
| 1451 |
Weight of edge. In dot, the heavier the weight, the shorter, |
| 1452 |
straighter and more vertical the edge is. |
| 1453 |
<B>N.B.</B> Weights in dot must be integers. |
| 1454 |
For twopi, a weight of 0 indicates the edge should not be used in constructing a |
| 1455 |
spanning tree from the root. |
| 1456 |
For other layouts, a larger weight encourages the layout to |
| 1457 |
make the edge length closer to that specified by the |
| 1458 |
<A HREF=#d:len>len</A> attribute. |
| 1459 |
:width:N:double:0.75:0.01; |
| 1460 |
Width of node, in inches. This is taken as the initial, minimum width |
| 1461 |
of the node. If <A HREF=#d:fixedsize><B>fixedsize</B></A> is true, this |
| 1462 |
will be the final width of the node. Otherwise, if the node label |
| 1463 |
requires more width to fit, the node's width will be increased to |
| 1464 |
contain the label. Note also that, if the output format is dot, the |
| 1465 |
value given to <B>width</B> will be the final value. |
| 1466 |
<P> |
| 1467 |
If the node shape is regular, the width and height are made identical. |
| 1468 |
In this case, if either the width or the height is set explicitly, |
| 1469 |
that value is used. |
| 1470 |
In this case, if both the width or the height are set explicitly, |
| 1471 |
the maximum of the two values is used. |
| 1472 |
If neither is set explicitly, the minimum of the two default values |
| 1473 |
is used. |
| 1474 |
:xlabel:EN:lblString:""; |
| 1475 |
External label for a node or edge. For nodes, the label will be placed outside of the |
| 1476 |
node but near it. For edges, the label will be placed near the center of the edge. |
| 1477 |
This can be useful in dot to avoid the occasional problem when the use of edge labels |
| 1478 |
distorts the layout. For other layouts, the xlabel attribute can be viewed as a synonym |
| 1479 |
for the <A HREF=#d:label><B>label</B></A> attribute. |
| 1480 |
<P> |
| 1481 |
These labels are added after all nodes and edges have been placed. The labels will be placed |
| 1482 |
so that they do not overlap any node or label. This means it may not be possible to place all |
| 1483 |
of them. To force placing all of them, use the <A HREF=#d:forcelabels><B>forcelabels</B></A> attribute. |
| 1484 |
:xlp:NE:point; write |
| 1485 |
Position of an exterior label, <A HREF=#points>in points</A>. |
| 1486 |
The position indicates the center of the label. |
| 1487 |
:z:N:double:0.0:-MAXFLOAT/-1000; |
| 1488 |
<B>Deprecated:</B>Use <A HREF=#d:pos><B>pos</B></A> attribute, along |
| 1489 |
with <A HREF=#d:dimen><B>dimen</B></A> and/or <A HREF=#d:dim><B>dim</B></A> |
| 1490 |
to specify dimensions. |
| 1491 |
<P> |
| 1492 |
Provides z coordinate value for 3D layouts and displays. If the |
| 1493 |
graph has <A HREF=#d:dim><B>dim</B></A> set to 3 (or more), |
| 1494 |
neato will use a node's <B>z</B> value |
| 1495 |
for the z coordinate of its initial position if |
| 1496 |
its <A HREF=#d:pos><B>pos</B></A> attribute is also defined. |
| 1497 |
<P> |
| 1498 |
Even if no <B>z</B> values are specified in the input, it is necessary to |
| 1499 |
declare a <B>z</B> attribute for nodes, e.g, using <TT>node[z=""]</TT> |
| 1500 |
in order to get z values on output. |
| 1501 |
Thus, setting <TT>dim=3</TT> but not declaring <B>z</B> will |
| 1502 |
cause <TT>neato -Tvrml</TT> to |
| 1503 |
layout the graph in 3D but project the layout onto the xy-plane |
| 1504 |
for the rendering. If the <B>z</B> attribute is declared, the final rendering |
| 1505 |
will be in 3D. |