Learn R Programming

loe (version 1.1)

spec.emb: Spectral embedding with the normalized or the unnormalized Laplacian (Laplacian eigenmaps).

Description

Performs spectral embedding for a given adjacency matrix.

Usage

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.

Examples

Run this code
library(igraph)
ADM <- as.matrix( get.adjacency(graph.famous("Icosahedral")) )

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

Run the code above in your browser using DataLab