layout.drl {igraph} | R Documentation |
DrL is a force-directed graph layout toolbox focused on real-world large-scale graphs, developed by Shawn Martin and colleagues at Sandia National Laboratories.
layout.drl (graph, use.seed = FALSE, seed = matrix(runif(vcount(graph) * 2), nc = 2), options = igraph.drl.default, weights = E(graph)$weight, fixed = NULL, dim = 2)
graph |
The input graph, in can be directed or undirected. |
use.seed |
Logical scalar, whether to use the coordinates given
in the |
seed |
A matrix with two columns, the starting coordinates for
the vertices is |
options |
Options for the layout generator, a named list. See details below. |
weights |
Optional edge weights. Supply |
fixed |
Logical vector, it can be used to fix some vertices. All
vertices for which it is |
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. |
This function implements the force-directed DrL layout generator.
The generator has the following parameters:
edge.cutEdge cutting is done in the late stages of the algorithm in order to achieve less dense layouts. Edges are cut if there is a lot of stress on them (a large value in the objective function sum). The edge cutting parameter is a value between 0 and 1 with 0 representing no edge cutting and 1 representing maximal edge cutting.
init.iterationsNumber of iterations in the first phase.
init.temperatureStart temperature, first phase.
init.attractionAttraction, first phase.
init.damping.multDamping, first phase.
liquid.iterationsNumber of iterations, liquid phase.
liquid.temperatureStart temperature, liquid phase.
liquid.attractionAttraction, liquid phase.
liquid.damping.multDamping, liquid phase.
expansion.iterationsNumber of iterations, expansion phase.
expansion.temperatureStart temperature, expansion phase.
expansion.attractionAttraction, expansion phase.
expansion.damping.multDamping, expansion phase.
cooldown.iterationsNumber of iterations, cooldown phase.
cooldown.temperatureStart temperature, cooldown phase.
cooldown.attractionAttraction, cooldown phase.
cooldown.damping.multDamping, cooldown phase.
crunch.iterationsNumber of iterations, crunch phase.
crunch.temperatureStart temperature, crunch phase.
crunch.attractionAttraction, crunch phase.
crunch.damping.multDamping, crunch phase.
simmer.iterationsNumber of iterations, simmer phase.
simmer.temperatureStart temperature, simmer phase.
simmer.attractionAttraction, simmer phase.
simmer.damping.multDamping, simmer phase.
There are five pre-defined parameter settings as well, these are
called igraph.drl.default
, igraph.drl.coarsen
,
igraph.drl.coarsest
, igraph.drl.refine
and
igraph.drl.final
.
A numeric matrix with two columns.
Shawn Martin google@for.it and Gabor Csardi csardi@rmki.kfki.hu for the R/igraph interface and the three dimensional version.
http://www.cs.sandia.gov/~smartin/software.html
layout
for other layout generators.
g <- as.undirected(ba.game(100, m=1)) l <- layout.drl(g, options=list(simmer.attraction=0)) ## Not run: plot(g, layout=l, vertex.size=3, vertex.label=NA) ## End(Not run)