/usr/share/doc/graphviz/html/info/arrows.html is in graphviz-doc 2.38.0-12ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<!--
This is a generated document. Do not edit.
-->
<HTML VERSION="2.0">
<HEAD>
<TITLE>Arrow Shapes</TITLE>
</HEAD>
<BODY BGCOLOR=white>
<A NAME="top"></A>
<H1 ALIGN=CENTER>Arrow Shapes</H1>
<HR>
Arrow shapes can be specified and named using the following simple
grammar.
Terminals are shown in bold font and nonterminals in italics.
Literal characters are given in single quotes.
Square brackets [ and ] enclose optional items.
Vertical bars | separate alternatives.
<TABLE>
<TR>
<TD ALIGN=RIGHT><I>arrowname</I></TD>
<TD ALIGN=LEFT>:</TD>
<TD ALIGN=LEFT><I>aname</I> [ <I>aname</I> [ <I>aname</I> [ <I>aname</I> ] ] ]</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><I>aname</I></TD>
<TD ALIGN=LEFT>:</TD>
<TD ALIGN=LEFT>[ <I>modifiers</I> ] <I>shape</I></TD>
</TR>
<TR>
<TD ALIGN=RIGHT><I>modifiers</I></TD>
<TD ALIGN=LEFT>:</TD>
<TD ALIGN=LEFT>[ <B>'o'</B> ] [ <I>side</I> ]</TD>
</TR>
<TR>
<TD ALIGN=RIGHT><I>side</I></TD>
<TD ALIGN=LEFT>:</TD>
<TD ALIGN=LEFT><B>'l'</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>'r'</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT><I>shape</I></TD>
<TD ALIGN=LEFT>:</TD>
<TD ALIGN=LEFT><B>box</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>crow</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>curve</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>diamond</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>dot</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>inv</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>none</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>normal</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>tee</B></TD>
</TR>
<TR>
<TD ALIGN=RIGHT></TD>
<TD ALIGN=LEFT>|</TD>
<TD ALIGN=LEFT><B>vee</B></TD>
</TR>
</TABLE>
<P>
The primitive shapes are:
<CENTER>
<TABLE>
<TR>
<TD>"box"<TD><IMG SRC="a_box.gif">
<TD>"crow"<TD><IMG SRC="a_crow.gif">
<TD>"curve"<TD><IMG SRC="a_curve.gif">
<TD>"diamond"<TD><IMG SRC="a_diamond.gif">
<TD>"dot"<TD><IMG SRC="a_dot.gif">
</TR>
<TR>
</TR>
<TR>
<TD>"inv"<TD><IMG SRC="a_inv.gif">
<TD>"none"<TD><IMG SRC="a_none.gif">
<TD>"normal"<TD><IMG SRC="a_normal.gif">
<TD>"tee"<TD><IMG SRC="a_tee.gif">
<TD>"vee"<TD><IMG SRC="a_open.gif">
</TR>
</TABLE>
</CENTER>
<P>
As for the modifiers:
<DL>
<DT>'l'
<DD> Clip the shape, leaving only the part to the left of the edge.
<DT>'r'
<DD> Clip the shape, leaving only the part to the right of the edge.
<DT>'o'
<DD> Use an open (non-filled) version of the shape.
</DL>
Left and right are defined as those directions determined by looking
from the edge towards the point where the arrow "touches" the node.
<P>
As an example, the arrow shape <TT>lteeoldiamond</TT> is parsed as
<TT>'l' 'tee' 'o' 'l' 'diamond'</TT> and corresponds to the shape
<CENTER>
<IMG SRC="a_lteeoldiamond.gif">
</CENTER>
Note that the first arrow shape specified occurs closest to the node.
Subsequent arrow shapes, if specified, occur further from the node.
Also, a shape of <tt>none</tt> uses space, so, for example, the arrowhead <tt>nonenormal</tt>
is not the same as <tt>normal</tt>.
<P>
Not all syntactically legal combinations of modifiers are meaningful
or semantically valid.
For example, none of the modifiers make any sense with <TT>none</TT>.
The following table indicates which modifiers are allowed with which shapes.
<P>
<CENTER>
<TABLE BORDER=2>
<TR ALIGN=CENTER>
<TH>Modifier</TH>
<TH>box
<TH>crow
<TH>curve
<TH>diamond
<TH>dot
<TH>inv
<TH>none
<TH>normal
<TH>tee
<TH>vee
</TR>
<TR ALIGN=CENTER><TD>'l'/'r'<TD>X<TD>X<TD>X<TD>X<TD> <TD>X<TD> <TD>X<TD>X<TD>X</TR>
<TR ALIGN=CENTER><TD>'o' <TD>X<TD> <TD> <TD>X<TD>X<TD>X<TD> <TD>X<TD> <TD> </TR>
</TABLE>
</CENTER>
<P>
This yields 39 different arrow shapes. The optional second, third, fourth shapes
can independently be any of the 39, except the last cannot be <TT>none</TT> as
this would create a redundant shape.
Thus, there are 38 · 39<sup>3</sup> + 38 · 39<sup>2</sup> + 38 · 39 + 39 = 2,313,441 different combinations.
<P>
The following display contains the 39 combinations possible with a single
arrow shape. The node attached to the arrow is not drawn but would appear
on the right side of the edge.
<P>
<CENTER>
<TABLE>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_box.gif">
<TD><IMG SRC="aa_lbox.gif">
<TD><IMG SRC="aa_rbox.gif">
<TD><IMG SRC="aa_obox.gif">
<TD><IMG SRC="aa_olbox.gif">
<TD><IMG SRC="aa_orbox.gif">
</TR>
<TR ALIGN=CENTER>
<TD>box
<TD>lbox
<TD>rbox
<TD>obox
<TD>olbox
<TD>orbox
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_crow.gif">
<TD><IMG SRC="aa_lcrow.gif">
<TD><IMG SRC="aa_rcrow.gif">
</TR>
<TR ALIGN=CENTER>
<TD>crow
<TD>lcrow
<TD>rcrow
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_diamond.gif">
<TD><IMG SRC="aa_ldiamond.gif">
<TD><IMG SRC="aa_rdiamond.gif">
<TD><IMG SRC="aa_odiamond.gif">
<TD><IMG SRC="aa_oldiamond.gif">
<TD><IMG SRC="aa_ordiamond.gif">
</TR>
<TR ALIGN=CENTER>
<TD>diamond
<TD>ldiamond
<TD>rdiamond
<TD>odiamond
<TD>oldiamond
<TD>ordiamond
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_dot.gif">
<TD><IMG SRC="aa_odot.gif">
</TR>
<TR ALIGN=CENTER>
<TD>dot
<TD>odot
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_inv.gif">
<TD><IMG SRC="aa_linv.gif">
<TD><IMG SRC="aa_rinv.gif">
<TD><IMG SRC="aa_oinv.gif">
<TD><IMG SRC="aa_olinv.gif">
<TD><IMG SRC="aa_orinv.gif">
</TR>
<TR ALIGN=CENTER>
<TD>inv
<TD>linv
<TD>rinv
<TD>oinv
<TD>olinv
<TD>orinv
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_none.gif">
</TR>
<TR ALIGN=CENTER>
<TD>none
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_normal.gif">
<TD><IMG SRC="aa_lnormal.gif">
<TD><IMG SRC="aa_rnormal.gif">
<TD><IMG SRC="aa_onormal.gif">
<TD><IMG SRC="aa_olnormal.gif">
<TD><IMG SRC="aa_ornormal.gif">
</TR>
<TR ALIGN=CENTER>
<TD>normal
<TD>lnormal
<TD>rnormal
<TD>onormal
<TD>olnormal
<TD>ornormal
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_tee.gif">
<TD><IMG SRC="aa_ltee.gif">
<TD><IMG SRC="aa_rtee.gif">
</TR>
<TR ALIGN=CENTER>
<TD>tee
<TD>ltee
<TD>rtee
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_vee.gif">
<TD><IMG SRC="aa_lvee.gif">
<TD><IMG SRC="aa_rvee.gif">
</TR>
<TR ALIGN=CENTER>
<TD>vee
<TD>lvee
<TD>rvee
</TR>
<TR ALIGN=CENTER>
<TD><IMG SRC="aa_curve.gif">
<TD><IMG SRC="aa_lcurve.gif">
<TD><IMG SRC="aa_rcurve.gif">
</TR>
<TR ALIGN=CENTER>
<TD>curve
<TD>lcurve
<TD>rcurve
</TR>
</TABLE>
</CENTER>
</BODY>
</HTML>
|