<H1 align=CENTER>Node Shapes</H1>
<HR>
There are three main types of shapes :
-<A HREF=/content/node-shapes#polygon>polygon-based</A>,
-<A HREF=/content/node-shapes#record>record-based</A> and
-<A HREF=/content/node-shapes#epsf>user-defined</A>.
+<A HREF=shapes.html#polygon>polygon-based</A>,
+<A HREF=shapes.html#record>record-based</A> and
+<A HREF=shapes.html#epsf>user-defined</A>.
The record-based shape has largely been superseded and greatly generalized
-by <A HREF=/content/node-shapes#html>HTML-like labels</A>.
+by <A HREF=shapes.html#html>HTML-like labels</A>.
That is, instead of using <TT>shape=record</TT>, one might
consider using <TT>shape=none</TT> and an HTML-like label.
<P>
The geometry and style of all node shapes are affected by
the node attributes
-<A HREF=/content/attrs#dfixedsize><TT>fixedsize</TT></A>,
-<A HREF=/content/attrs#dfontname><TT>fontname</TT></A>,
-<A HREF=/content/attrs#dfontsize><TT>fontsize</TT></A>,
-<A HREF=/content/attrs#dheight><TT>height</TT></A>,
-<A HREF=/content/attrs#dlabel><TT>label</TT></A>,
-<A HREF=#dstyle><TT>style</TT></A> and
-<A HREF=/content/attrs#dwidth><TT>width</TT></A>.
+<A HREF=attrs.html#d:fixedsize><TT>fixedsize</TT></A>,
+<A HREF=attrs.html#d:fontname><TT>fontname</TT></A>,
+<A HREF=attrs.html#d:fontsize><TT>fontsize</TT></A>,
+<A HREF=attrs.html#d:height><TT>height</TT></A>,
+<A HREF=attrs.html#d:label><TT>label</TT></A>,
+<A HREF=#d:style><TT>style</TT></A> and
+<A HREF=attrs.html#d:width><TT>width</TT></A>.
<H2><A NAME=polygon>Polygon-based Nodes</A></H2>
The possible polygon-based shapes are displayed below.
<TD><IMG SRC=oval.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dbox>box</A>
- <TD><A NAME=dpolygon>polygon</A>
- <TD><A NAME=dellipse>ellipse</A>
- <TD><A NAME=doval>oval</A>
+ <TD><A NAME=d:box>box</A>
+ <TD><A NAME=d:polygon>polygon</A>
+ <TD><A NAME=d:ellipse>ellipse</A>
+ <TD><A NAME=d:oval>oval</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=circle.gif>
<TD><IMG SRC=triangle.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dcircle>circle</A>
- <TD><A NAME=dpoint>point</A>
- <TD><A NAME=degg>egg</A>
- <TD><A NAME=dtriangle>triangle</A>
+ <TD><A NAME=d:circle>circle</A>
+ <TD><A NAME=d:point>point</A>
+ <TD><A NAME=d:egg>egg</A>
+ <TD><A NAME=d:triangle>triangle</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=plaintext.gif>
<TD><IMG SRC=parallelogram.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dplaintext>plaintext</A>
- <TD><A NAME=ddiamond>diamond</A>
- <TD><A NAME=dtrapezium>trapezium</A>
- <TD><A NAME=dparallelogram>parallelogram</A>
+ <TD><A NAME=d:plaintext>plaintext</A>
+ <TD><A NAME=d:diamond>diamond</A>
+ <TD><A NAME=d:trapezium>trapezium</A>
+ <TD><A NAME=d:parallelogram>parallelogram</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=house.gif>
<TD><IMG SRC=septagon.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dhouse>house</A>
- <TD><A NAME=dpentagon>pentagon</A>
- <TD><A NAME=dhexagon>hexagon</A>
- <TD><A NAME=dseptagon>septagon</A>
+ <TD><A NAME=d:house>house</A>
+ <TD><A NAME=d:pentagon>pentagon</A>
+ <TD><A NAME=d:hexagon>hexagon</A>
+ <TD><A NAME=d:septagon>septagon</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=octagon.gif>
<TD><IMG SRC=tripleoctagon.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=doctagon>octagon</A>
- <TD><A NAME=ddoublecircle>doublecircle</A>
- <TD><A NAME=ddoubleoctagon>doubleoctagon</A>
- <TD><A NAME=dtripleoctagon>tripleoctagon</A>
+ <TD><A NAME=d:octagon>octagon</A>
+ <TD><A NAME=d:doublecircle>doublecircle</A>
+ <TD><A NAME=d:doubleoctagon>doubleoctagon</A>
+ <TD><A NAME=d:tripleoctagon>tripleoctagon</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=invtriangle.gif>
<TD><IMG SRC=Mdiamond.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dinvtriangle>invtriangle</A>
- <TD><A NAME=dinvtrapezium>invtrapezium</A>
- <TD><A NAME=dinvhouse>invhouse</A>
- <TD><A NAME=dMdiamond>Mdiamond</A>
+ <TD><A NAME=d:invtriangle>invtriangle</A>
+ <TD><A NAME=d:invtrapezium>invtrapezium</A>
+ <TD><A NAME=d:invhouse>invhouse</A>
+ <TD><A NAME=d:Mdiamond>Mdiamond</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=Msquare.gif>
<TD><IMG SRC=rectangle.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dMsquare>Msquare</A>
- <TD><A NAME=dMcircle>Mcircle</A>
- <TD><A NAME=drect>rect</A>
- <TD><A NAME=drectangle>rectangle</A>
+ <TD><A NAME=d:Msquare>Msquare</A>
+ <TD><A NAME=d:Mcircle>Mcircle</A>
+ <TD><A NAME=d:rect>rect</A>
+ <TD><A NAME=d:rectangle>rectangle</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=square.gif>
<TD><IMG SRC=tab.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dsquare>square</A>
- <TD><A NAME=dnone>none</A>
- <TD><A NAME=dnote>note</A>
- <TD><A NAME=dtab>tab</A>
+ <TD><A NAME=d:square>square</A>
+ <TD><A NAME=d:none>none</A>
+ <TD><A NAME=d:note>note</A>
+ <TD><A NAME=d:tab>tab</A>
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC=folder.gif>
<TD><IMG SRC=component.gif>
</TR>
<TR ALIGN=CENTER>
- <TD><A NAME=dfolder>folder</A>
- <TD><A NAME=dbox3d>box3d</A>
- <TD><A NAME=dcomponent>component</A>
+ <TD><A NAME=d:folder>folder</A>
+ <TD><A NAME=d:box3d>box3d</A>
+ <TD><A NAME=d:component>component</A>
</TR>
</TABLE>
As the figures suggest, the shapes <TT>rect</TT> and <TT>rectangle</TT> are synonyms for <TT>box</TT>, and <TT>none</TT> is a synonym for <TT>plaintext</TT>.
<P>
The geometries of polygon-based shapes are also affected
by the node attributes
-<A HREF=/content/attrs#dregular><TT>regular</TT></A>,
-<A HREF=/content/attrs#dperipheries><TT>peripheries</TT></A> and
-<A HREF=/content/attrs#dorientation><TT>orientation</TT></A>.
+<A HREF=attrs.html#d:regular><TT>regular</TT></A>,
+<A HREF=attrs.html#d:peripheries><TT>peripheries</TT></A> and
+<A HREF=attrs.html#d:orientation><TT>orientation</TT></A>.
If <TT>shape="polygon"</TT>, the attributes
-<A HREF=/content/attrs#dsides><TT>sides</TT></A>,
-<A HREF=/content/attrs#dskew><TT>skew</TT></A> and
-<A HREF=/content/attrs#ddistortion><TT>distortion</TT></A> are also used.
+<A HREF=attrs.html#d:sides><TT>sides</TT></A>,
+<A HREF=attrs.html#d:skew><TT>skew</TT></A> and
+<A HREF=attrs.html#d:distortion><TT>distortion</TT></A> are also used.
If unset, they default to 4, 0.0 and 0.0, respectively.
The point shape is special in that it is
-only affected by the <A HREF=/content/attrs#dperipheries><TT>peripheries</TT></A>,
-<A HREF=/content/attrs#dwidth><TT>width</TT></A> and
-<A HREF=/content/attrs#dheight><TT>height</TT></A> attributes.
+only affected by the <A HREF=attrs.html#d:peripheries><TT>peripheries</TT></A>,
+<A HREF=attrs.html#d:width><TT>width</TT></A> and
+<A HREF=attrs.html#d:height><TT>height</TT></A> attributes.
<H2><A NAME=record>Record-based Nodes</A></H2>
These are specified by shape values of "record" and "Mrecord".
The structure of a record-based node is determined by
-its <A HREF=/content/attrs#dlabel><TT>label</TT></A>,
+its <A HREF=attrs.html#d:label><TT>label</TT></A>,
which has the following schema:
<TABLE>
<TR><TD ALIGN=right><I>rlabel</I><TD>=<TD><I>field</I> ( '|' <I>field</I> )*</TR>
<P>
The first string in <I>fieldId</I> assigns a portname to the field and can
be combined with the node name to indicate where to attach an edge
-to the node. (See <A HREF=/content/attrs#kportPos>portPos</A>.)
+to the node. (See <A HREF=attrs.html#k:portPos>portPos</A>.)
The second string is used as the text for the field; it supports the usual
-<A HREF=/content/attrs#kescString>escape sequences</A> \n, \l and \r.
+<A HREF=attrs.html#k:escString>escape sequences</A> \n, \l and \r.
<P>
Visually, a record is a box, with fields represented by alternating
rows of horizontal or vertical subboxes. The Mrecord shape is identical
"A" to the left and "D" to the right of "B" and "C".
<P>
The initial orientation of a record node depends on the
-<A HREF="/content/attrs#drankdir">rankdir</A> attribute. If this attribute
+<A HREF="attrs.html#d:rankdir">rankdir</A> attribute. If this attribute
is <TT>TB</TT> (the default) or <TT>TB</TT>, corresponding to vertical
layouts, the top-level fields in a record are displayed horizontally.
If, however, this attribute is <TT>LR</TT> or <TT>RL</TT>,
it then looks like:<BR>
<IMG SRC=mrecord.gif>
-<H2><A NAME="dstyle">Styles for Nodes</A></H2>
-The <A HREF=/content/attrs#dstyle><TT>style</TT></A>
+<H2><A NAME="d:style">Styles for Nodes</A></H2>
+The <A HREF=attrs.html#d:style><TT>style</TT></A>
attribute can be used to modify the appearance of a node.
At present, there are 8 style values recognized:
<TT>filled</TT>, <TT>invisible</TT>, <TT>diagonals</TT>, <TT>rounded</TT>.
<TT>dashed</TT>, <TT>dotted</TT>, <TT>solid</TT> and <TT>bold</TT>.
-As usual, the value of the <A HREF=/content/attrs#dstyle><TT>style</TT></A>
+As usual, the value of the <A HREF=attrs.html#d:style><TT>style</TT></A>
attribute can be a comma-separated list of any of these. If the
style contains conflicts (e.g, <TT>style="dotted, solid"</TT>), the last
attribute wins.
<DL>
-<DT><A NAME=dfilled><TT>filled</TT>
+<DT><A NAME=d:filled><TT>filled</TT>
<DD>This value indicates that the node's interior should be filled.
The color used is the node's <TT>fillcolor</TT> or, if that's not defined, its
<TT>color</TT>. For unfilled nodes, the interior of the node is transparent to
yields the figure<BR>
<IMG SRC=fill.gif>
-<DT><A NAME=dinvisible><TT>invisible</TT>
+<DT><A NAME=d:invisible><TT>invisible</TT>
<DD>Setting this style causes the node not to be displayed at all.
Note that the node is still used in laying out the graph.
-<DT><A NAME=ddiagonals><TT>diagonals</TT>
+<DT><A NAME=d:diagonals><TT>diagonals</TT>
<DD>The diagonals style causes small chords to be drawn near the vertices
of the node's polygon or, in case of circles and ellipses, two chords near
the top and the bottom of the shape. The special node shapes
-<A HREF=#dMsquare><TT>Msquare</TT></A>,
-<A HREF=#dMcircle><TT>Mcircle</TT></A>, and
-<A HREF=#dMdiamond><TT>Mdiamond</TT></A>
+<A HREF=#d:Msquare><TT>Msquare</TT></A>,
+<A HREF=#d:Mcircle><TT>Mcircle</TT></A>, and
+<A HREF=#d:Mdiamond><TT>Mdiamond</TT></A>
are simply an ordinary square, circle and
diamond with the diagonals style set.
-<DT><A NAME=drounded><TT>rounded</TT>
+<DT><A NAME=d:rounded><TT>rounded</TT>
<DD>The rounded style causes the polygonal corners to be smoothed.
Note that this style also applies to record-based nodes. Indeed,
the <TT>Mrecord</TT> shape is simply shorthand for setting this style.
</XMP>
to produce the figure<BR>
<IMG SRC=round.gif>
-<DT><A NAME=ddashed><TT>dashed</TT>
+<DT><A NAME=d:dashed><TT>dashed</TT>
<DD>This style causes the node's border to be drawn as a dashed line.
-<DT><A NAME=ddotted><TT>dotted</TT>
+<DT><A NAME=d:dotted><TT>dotted</TT>
<DD>This style causes the node's border to be drawn as a dotted line.
-<DT><A NAME=dsolid><TT>solid</TT>
+<DT><A NAME=d:solid><TT>solid</TT>
<DD>This style causes the node's border to be drawn as a solid line,
which is the default.
-<DT><A NAME=dbold><TT>bold</TT>
+<DT><A NAME=d:bold><TT>bold</TT>
<DD>This style causes the node's border to be drawn as a bold line.
-See also <A HREF=/content/attrs#dpenwidth>penwidth</A>.
+See also <A HREF=attrs.html#d:penwidth>penwidth</A>.
</DL>
of release 1.10.</EM>
<P>
If the value of a label attribute
-(<A HREF=/content/attrs#dlabel><TT>label</TT></A> for nodes, edges, clusters, and
+(<A HREF=attrs.html#d:label><TT>label</TT></A> for nodes, edges, clusters, and
graphs, and the
-<A HREF=/content/attrs#dheadlabel><TT>headlabel</TT></A> and
-<A HREF=/content/attrs#dtaillabel><TT>taillabel</TT></A>
+<A HREF=attrs.html#d:headlabel><TT>headlabel</TT></A> and
+<A HREF=attrs.html#d:taillabel><TT>taillabel</TT></A>
attributes of an edge) is given as an
-<A HREF=/content/dot-language#html>HTML string</A>,
+<A HREF=lang.html#html>HTML string</A>,
that is, delimited by <TT><...></TT>
rather than <TT>"..."</TT>,
the label is interpreted as
an HTML description. At their simplest, such labels
can describe multiple lines of variously aligned text as provided by ordinary
-<A HREF=/content/attrs#kescString>string labels</A>. More generally, the
+<A HREF=attrs.html#k:escString>string labels</A>. More generally, the
label can specify a table similar to those provided by HTML,
with different graphical attributes at each level.
<P>
-As <A HREF=/content/dot-language#html>HTML strings</A> are processed like HTML input, any use of
+As <A HREF=lang.html#html>HTML strings</A> are processed like HTML input, any use of
the ", &, <, and > characters in literal text or in attribute values
need to be replaced by the corresponding escape sequence. For example, if you want to
use & in an <TT>href</TT> value, this should be represented as &amp;.
Although HTML labels are not, strictly speaking, a shape, they can be
viewed as a generalization of the record shapes described above.
In particular, if a node has set its
-<A HREF=/content/attrs#kshape><TT>shape</TT></A>
+<A HREF=attrs.html#k:shape><TT>shape</TT></A>
attribute to <TT>none</TT> or <TT>plaintext</TT>, the HTML label will be the node's
shape. On the other hand, if the node has any other shape (except
<TT>point</TT>), the HTML label will be embedded within the node the
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
- <TD ALIGN=LEFT><B><U></B> <I>text</I> <B></U></B></TD>
+ <TD ALIGN=LEFT><B><U></B> <I>text</I> <B></U></B></TD>
+</TR>
+<TR>
+ <TD ALIGN=RIGHT></TD>
+ <TD ALIGN=LEFT>|</TD>
+ <TD ALIGN=LEFT><B><SUB></B> <I>text</I> <B></SUB></B></TD>
+</TR>
+<TR>
+ <TD ALIGN=RIGHT></TD>
+ <TD ALIGN=LEFT>|</TD>
+ <TD ALIGN=LEFT><B><SUP></B> <I>text</I> <B></SUP></B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT><I>table</I></TD>
<P>
Each of the HTML elements has a set of optional attributes.
Attribute values must appear in double quotes.
-<PRE><TABLE
+<P>
+ <!-- Table element -->
+<PRE>
+<TABLE
ALIGN="CENTER|LEFT|RIGHT"
BGCOLOR="<I>color</I>"
BORDER="<I>value</I>"
>
</PRE>
<P>
+ <!-- Table row -->
<PRE><TR
<!-- No attributes -->
>
</PRE>
<P>
+ <!-- Table cell -->
<PRE><TD
ALIGN="CENTER|LEFT|RIGHT|TEXT"
BALIGN="CENTER|LEFT|RIGHT"
</PRE>
<P>
+ <!-- Font specification -->
<PRE><FONT
COLOR="<I>color</I>"
FACE="<I>fontname</I>"
</PRE>
<P>
+ <!-- Line break -->
<PRE><BR
ALIGN="CENTER|LEFT|RIGHT"
>
</PRE>
<P>
+ <!-- Image inclusion -->
<PRE><IMG
SCALE="FALSE|TRUE|WIDTH|HEIGHT|BOTH"
SRC="<I>value</I>"
>
</PRE>
<P>
+ <!-- Italic style -->
<PRE><I
<!-- No attributes -->
>
</PRE>
<P>
+ <!-- Bold style -->
<PRE><B
<!-- No attributes -->
>
</PRE>
<P>
+ <!-- Underlined text -->
<PRE><U
<!-- No attributes -->
>
</PRE>
+<P>
+ <!-- Subscript text -->
+<PRE><SUB
+ <!-- No attributes -->
+>
+</PRE>
+<P>
+ <!-- Superscript text -->
+<PRE><SUP
+ <!-- No attributes -->
+>
+</PRE>
<P>
<B><I><FONT SIZE=-1>ALIGN</FONT> </I></B>
This color can be
overridden by a <B><I>COLOR</I></B> attribute in descendents.
By default, the font color is determined by the
-<A HREF="/content/attrs#dfontcolor">fontcolor</A> attribute of
+<A HREF="attrs.html#d:fontcolor">fontcolor</A> attribute of
the corresponding node, edge or graph, and the border color
is determined by the
-<A HREF="/content/attrs#dcolor">color</A> attribute of
+<A HREF="attrs.html#d:color">color</A> attribute of
the corresponding node, edge or graph.
</BLOCKQUOTE>
This can be
overridden by a <B><I>FACE</I></B> attribute in descendents.
By default, the font name is determined by the
-<A HREF="/content/attrs#dfontname">fontname</A> attribute of the corresponding
+<A HREF="attrs.html#d:fontname">fontname</A> attribute of the corresponding
node, edge or graph.
</BLOCKQUOTE>
<BLOCKQUOTE>
attaches a URL to the object.
Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dURL>URL</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:URL>URL</A> attribute.
</BLOCKQUOTE>
<B><I><FONT SIZE=-1>ID="value"</FONT></I></B>
<BLOCKQUOTE>
allows the user to specify a unique ID for a table or cell. See
-the <A HREF=/content/attrs#did>id</A> attribute for more information.
+the <A HREF=attrs.html#d:id>id</A> attribute for more information.
Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#did>id</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:id>id</A> attribute.
</BLOCKQUOTE>
<B><I><FONT SIZE=-1>POINT-SIZE="value"</FONT></I></B>
This can be
overridden by a <B><I>POINT-SIZE</I></B> attribute in descendents.
By default, the font size is determined by the
-<A HREF="/content/attrs#dfontsize">fontsize</A> attribute of the corresponding
+<A HREF="attrs.html#d:fontsize">fontsize</A> attribute of the corresponding
node, edge or graph.
</BLOCKQUOTE>
<B><I><FONT SIZE=-1>PORT="value"</FONT></I></B>
<BLOCKQUOTE>
attaches a portname to the object.
-(See <A HREF=/content/attrs#kportPos>portPos</A>.)
+(See <A HREF=attrs.html#k:portPos>portPos</A>.)
This can be used to modify the head
or tail of an edge, so that the end attaches directly to the object.
</BLOCKQUOTE>
<LI>BOTH : expand both image width height to fill </LI>
</ul>
If this attribute is undefined,
-the image inherits the <A HREF="/content/attrs#dimagescale">imagescale</A>
+the image inherits the <A HREF="attrs.html#d:imagescale">imagescale</A>
attribute of the graph object being drawn.
-As with the <A HREF="/content/attrs#dimagescale">imagescale</A>
+As with the <A HREF="attrs.html#d:imagescale">imagescale</A>
attribute, if the cell has a fixed size and the image is too large,
any offending dimension will be shrunk to fit the space, the
scaling being uniform in width and height if <I>SCALE=<TT>"true"</TT></I>.
<BLOCKQUOTE>
specifies the image file to be displayed in the cell.
Note that if the software is used as a web server, file system access
-to images is more restricted. See <A HREF="/content/command-line-invocation#dGV_FILE_PATH">GV_FILE_PATH</A>
-and <A HREF="/content/command-line-invocation#dSERVER_NAME">SERVER_NAME</A>.
+to images is more restricted. See <A HREF="command.html#d:GV_FILE_PATH">GV_FILE_PATH</A>
+and <A HREF="command.html#d:SERVER_NAME">SERVER_NAME</A>.
</BLOCKQUOTE>
<P>
has one.
See <A HREF="http://www.w3.org/TR/html401/present/frames.html#adef-target">W3C documentation</A>.
Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dtarget>target</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:target>target</A> attribute.
</BLOCKQUOTE>
<B><I><FONT SIZE=-1>TITLE="value"</FONT></I></B>
sets the tooltip annotation attached to the element.
This is used only if the element has a HREF attribute.
Note that the <TT>"value"</TT> is treated as an
-<A HREF=/content/attrs#kescString>escString</A> similarly to the
-<A HREF=/content/attrs#dtooltip>tooltip</A> attribute.
+<A HREF=attrs.html#k:escString>escString</A> similarly to the
+<A HREF=attrs.html#d:tooltip>tooltip</A> attribute.
</BLOCKQUOTE>
<B><I><FONT SIZE=-1>TOOLTIP="value"</FONT></I></B>