get_edges
. The need for get_edges
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.
get_edges(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:Node parameters are automatically added so it is possible to format edge aesthetics according to start or end node parameters, or interpolate edge aesthetics between start and end node parameters. Node parameters will be prefixed to avoid name clash with edge parameters. The prefix depends on the format (see above).
If the graph is not simple (it contains at most one edge between each node pair) it can be collapsed so either all edges between two nodes or all edges of the same direction between two nodes are merged. The edge parameters are taken from the first occuring edge, so if some more sophisticated summary is needed it is suggested that the graph be tidied up before plotting with ggraph.
get_con
,
get_nodes