View source: R/graph_embedding_spectrum.R
| graph.embedding | R Documentation |
Embed Graph in 2D or 3D Space
graph.embedding(
adj.list,
weights.list = NULL,
invert.weights = TRUE,
dim = 2,
method = c("fr", "kk"),
verbose = FALSE
)
adj.list |
Adjacency list representation of a graph. |
weights.list |
Optional edge-weight list aligned with |
invert.weights |
Logical; invert weights for Fruchterman-Reingold layout. |
dim |
Embedding dimension, either |
method |
Layout method, |
verbose |
Logical; print timing messages. |
Numeric layout matrix with one row per embedded vertex.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.