Some
Attributes (mainly label-like ones) take a
String
argument that allows for extra escape codes. This library doesn't do
any extra checks or special parsing for these escape codes, but usage
of
EscString rather than
Text indicates that the
Graphviz tools will recognise these extra escape codes for these
Attributes.
The extra escape codes include (note that these are all Strings):
- \N Replace with the name of the node (for Node
Attributes).
- \G Replace with the name of the graph (for Node
Attributes) or the name of the graph or cluster, whichever is
applicable (for Graph, Cluster and Edge Attributes).
- \E Replace with the name of the edge, formed by
the two adjoining nodes and the edge type (for Edge
Attributes).
- \T Replace with the name of the tail node (for
Edge Attributes).
- \H Replace with the name of the head node (for
Edge Attributes).
- \L Replace with the object's label (for all
Attributes).
Also, if the
Attribute in question is
Label,
HeadLabel or
TailLabel, then
\n,
\l and
\r split the label into lines centered,
left-justified and right-justified respectively.