Description Usage Arguments Value Author(s) References Examples
View source: R/embed.2007CYT.R
Directed Graph Embedding by Chen, Yang, and Tang (2007)
1 | embed.2007CYT(graph, ndim = 2, alpha = 0.01)
|
graph |
an |
ndim |
an embedding dimension for a given graph. |
alpha |
perturbation factor \in (0,1). Default is 0.01 |
a named list containing
an (N\times ndim) matrix of embedded coordinates.
Kisung You
chen_directed_2007PNAS
1 2 3 4 5 6 7 8 9 10 11 | ## create a simple directed ring graph
library(igraph)
mygraph = graph.ring(10, directed=TRUE)
## embed in R^2
embed2 = embed.2007CYT(mygraph)$embed
## visualize the results
par(mfrow=c(1,2), pty="s")
plot(mygraph, main="directed ring graph")
plot(embed2[,1], embed2[,2], pch=19, main="embedded in R^2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.