Description Usage Arguments Details Value Author(s) Examples
Computes the position of vertices along axes
1 | nodePosition(graph, func = closeness, ...)
|
graph |
An igraph object |
func |
A function that returns a cluster membership for each node |
... |
Further arguments for |
Computes the position of vertices along axes based on some centrality algorithm such as closeness
A graph with a new Vertex slot 'axis' that stores the cluster membership
Jared P. Lander
1 2 3 4 5 | data(flights)
library(igraph)
g <- graph.data.frame(flights, directed=TRUE)
g2 <- nodePosition(g)
V(g2)$nodePosition
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.