Description Usage Arguments Value References Examples
View source: R/embedding_embed2007CYT.R
Find a low-dimensional embedding of the network given an asymmetric/directed graph. For simplicity, this function only accepts a network of \lbrace 0, 1 \rbrace binary edges.
1 | embed2007CYT(graph, ndim = 2, alpha = 0.01)
|
graph |
one of the followings; (1) an |
ndim |
an embedding dimension for a given graph (default: 2). |
alpha |
perturbation factor \in (0,1) (default: 0.01). |
a named list containing
an (N\times ndim) matrix of embedded coordinates.
chen_directed_2007T4network
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## create a simple directed ring graph
library(igraph)
mygraph = graph.ring(10, directed=TRUE)
## embed in R^2
embed2 = embed2007CYT(mygraph)$embed
## visualize the results
opar <- par(no.readonly=TRUE)
par(mfrow=c(1,2), pty="s")
plot(mygraph, main="directed ring graph")
plot(embed2, pch=19, main="2-dimensional embedding",
xlab="dimension 1", ylab="dimension 2")
par(opar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.