embed.2007CYT: Directed Graph Embedding by Chen, Yang, and Tang (2007)

Description Usage Arguments Value Author(s) References Examples

View source: R/embed.2007CYT.R

Description

Directed Graph Embedding by Chen, Yang, and Tang (2007)

Usage

1
embed.2007CYT(graph, ndim = 2, alpha = 0.01)

Arguments

graph

an igraph object or (N\times N) adjacency matrix.

ndim

an embedding dimension for a given graph.

alpha

perturbation factor \in (0,1). Default is 0.01

Value

a named list containing

embed

an (N\times ndim) matrix of embedded coordinates.

Author(s)

Kisung You

References

\insertRef

chen_directed_2007PNAS

Examples

 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")

kyoustat/PNAS documentation built on Nov. 14, 2019, 4:09 p.m.