edge
Graphviz > Graphviz data structures
Prev:node
Next:subgraph


Vocabulary
graphviz

Class description
Represents a Graphviz edge. Each edge is defined by its tail slot and its head slot. Each slot must be either
a string representing the id of a node or
a subgraph, which is a convenient way to represent multiple Graphviz edges.

In particular, using subgraphs gives us shorthand forms for the following cases:
head is a string...head is a subgraph...
tail is a string...edge from tail node to head nodeedge from tail node to each node in head
tail is a subgraph...edge from each node in tail to head nodeedge from each node in tail to each node in head

For more details, see graphviz.render.

In addition, an edge may store local attributes in its attributes slot (an edge-attributes tuple).

Notes
By convention, an edge orders its endpoints "from" tail "to" head, even if it belongs to an undirected graph, where such a distinction is generally meaningless. See the Graphviz documentation (http://graphviz.org/Documentation.php), and specifically the notes about ambiguous attributes (in http://graphviz.org/content/attrs) for more information.

See also
<edge>

Definition
USING: graphviz.attributes ;

IN: graphviz

TUPLE: edge
tail head {
attributes edge-attributes initial:
T{ edge-attributes }
} ;


Methods
USING: accessors combinators graphviz graphviz.builder.private
kernel ;

M: edge (build-alien)
[ build-alien-endpoints ] 2keep nip
[ attributes>> ] [ tail>> ] [ head>> ] tri {
{ [ 2dup node->node? ] [ 2drop node->node ] }
{ [ 2dup node->subg? ] [ 2drop node->subg ] }
{ [ 2dup subg->node? ] [ 2drop subg->node ] }
{ [ 2dup subg->subg? ] [ 2drop subg->subg ] }
} cond drop ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =URL present over attributes>> URL<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =arrowhead present over attributes>> arrowhead<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =arrowsize present over attributes>> arrowsize<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =arrowtail present over attributes>> arrowtail<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =color present over attributes>> color<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =colorscheme present over attributes>> colorscheme<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =comment present over attributes>> comment<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =constraint present over attributes>> constraint<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =decorate present over attributes>> decorate<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =dir present over attributes>> dir<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =edgeURL present over attributes>> edgeURL<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =edgehref present over attributes>> edgehref<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =edgetarget present over attributes>> edgetarget<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =edgetooltip present over attributes>> edgetooltip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =fontcolor present over attributes>> fontcolor<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =fontname present over attributes>> fontname<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =fontsize present over attributes>> fontsize<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headURL present over attributes>> headURL<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headclip present over attributes>> headclip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headhref present over attributes>> headhref<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headlabel present over attributes>> headlabel<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headport present over attributes>> headport<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headtarget present over attributes>> headtarget<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =headtooltip present over attributes>> headtooltip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =href present over attributes>> href<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =id present over attributes>> id<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =label present over attributes>> label<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelURL present over attributes>> labelURL<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelangle present over attributes>> labelangle<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labeldistance
present over attributes>> labeldistance<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelfloat present over attributes>> labelfloat<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelfontcolor
present over attributes>> labelfontcolor<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelfontname
present over attributes>> labelfontname<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelfontsize
present over attributes>> labelfontsize<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labelhref present over attributes>> labelhref<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labeltarget present over attributes>> labeltarget<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =labeltooltip
present over attributes>> labeltooltip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =layer present over attributes>> layer<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =len present over attributes>> len<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =lhead present over attributes>> lhead<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =lp present over attributes>> lp<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =ltail present over attributes>> ltail<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =minlen present over attributes>> minlen<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =nojustify present over attributes>> nojustify<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =penwidth present over attributes>> penwidth<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =pos present over attributes>> pos<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =samehead present over attributes>> samehead<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =sametail present over attributes>> sametail<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =showboxes present over attributes>> showboxes<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =style present over attributes>> style<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailURL present over attributes>> tailURL<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailclip present over attributes>> tailclip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailhref present over attributes>> tailhref<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =taillabel present over attributes>> taillabel<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailport present over attributes>> tailport<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailtarget present over attributes>> tailtarget<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tailtooltip present over attributes>> tailtooltip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =target present over attributes>> target<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =tooltip present over attributes>> tooltip<< ;


USING: accessors graphviz graphviz.notation kernel present ;

M: edge =weight present over attributes>> weight<< ;