spec.emb: Spectral embedding with the normalized or the unnormalized...

Description Usage Arguments Value Author(s) Examples

Description

Performs spectral embedding for a given adjacency matrix.

Usage

1
spec.emb(A, p, norm = TRUE)

Arguments

A
p

The number of dimensions.

norm

If TRUE, then the normalized Laplacian is used for embedding. If FASLE, then the unnormalized Laplacian is used for embedding.

Value

The corrdinate matrix with p columns whose rows give the coordinates of the vertexes.

Author(s)

Yoshikazu Terada

Examples

1
2
3
4
5
library(igraph)
ADM <- as.matrix( get.adjacency(graph.famous("Icosahedral")) )

#Apply some graph embedding methods
LE <-spec.emb(A=ADM,2,norm=FALSE)

loe documentation built on May 2, 2019, 3:28 a.m.