layout.drl {igraph}R Documentation

The DrL graph layout generator

Description

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.

Usage

layout.drl (graph, use.seed = FALSE, seed = matrix(runif(vcount(graph) * 
    2), nc = 2), options = igraph.drl.default, weights = E(graph)$weight, 
    fixed = NULL) 

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 is TRUE. It is ignored otherwise.
options Options for the layout generator, a named list. See details below.
weights Optional edge weights. Supply NULL here if you want to weight edges equally. By default the weight edge attribute is used if the graph has one.
fixed Logical vector, it can be used to fix some vertices. All vertices for which it is TRUE are kept at the coordinates supplied in the seed matrix. It is ignored it NULL or if use.seed is FALSE.

Details

This function implements the force-directed DrL layout generator.

The generator has the following parameters:

Value

A numeric matrix with two columns.

Author(s)

Shawn Martin google@for.it and Gabor Csardi csardi@rmki.kfki.hu for the R/igraph interface

References

http://www.cs.sandia.gov/~smartin/software.html

See Also

layout for other layout generators.

Examples

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)

[Package igraph version 0.5.1 Index]