gEdges
. The need for gEdges
is mainly to
pass to the data
argument of the different geom_edge_*
functions in order to present them with the right kind of data. In general
each geom_edge_*
has the default set correctly so there is only need
to modify the data argument if parallel edges should be collapsed.gEdges(format = "short", collapse = "none")
'short'
(the default) or 'long'
. See
details for a descriptions of the differences'none'
(the default), 'all'
or
'direction'
. Specifies whether parallel edges should be merged. See
details for more informationfrom
, to
and
circular
, the two former giving the indexes of the start and end node
and the latter if the layout is circular (needed for correct formatting of
some geom_edge_*
). The graph dependent information is: label
column will hold the value of the
edgetext
attribute. In addition any value stored in the
edgePar
attribute will be added. Lastly a direction
column
will hold the relative position between the start and end nodes (needed for
correct formatting of geom_edge_elbow
).geom_segment
, that is, the start
node position is encoded in the x
and y
column and the end
node position is encoded in the xend
and yend
column. If node
parameters are added to the edge the name of the parameters will be
prefixed with node1.
for the start node and node2.
for the
end node.edge.id
value. The start and end position are both encoded in the
x
and y
column. The relative position of the rows determines
which is the start and end node, the first occuring being the start node.
If node parameters are added to the edge data the name of the parameters
will be prefixed with node.
.gCon