layout.drl()
was renamed to layout_with_drl()
to create a more
consistent API.
Arguments
- graph
The input graph, in can be directed or undirected.
- use.seed
Logical scalar, whether to use the coordinates given in the
seed
argument as a starting point.- seed
A matrix with two columns, the starting coordinates for the vertices is
use.seed
isTRUE
. It is ignored otherwise.- options
Options for the layout generator, a named list. See details below.
- weights
The weights of the edges. It must be a positive numeric vector,
NULL
orNA
. If it isNULL
and the input graph has a ‘weight’ edge attribute, then that attribute will be used. IfNULL
and no such attribute is present, then the edges will have equal weights. Set this toNA
if the graph was a ‘weight’ edge attribute, but you don't want to use it for the layout. Larger edge weights correspond to stronger connections.- dim
Either ‘2’ or ‘3’, it specifies whether we want a two dimensional or a three dimensional layout. Note that because of the nature of the DrL algorithm, the three dimensional layout takes significantly longer to compute.