graph.spectrum: Compute Graph Spectrum

View source: R/graph_embedding_spectrum.R

graph.spectrumR Documentation

Compute Graph Spectrum

Description

Compute Graph Spectrum

Usage

graph.spectrum(
  graph,
  nev = NULL,
  use.R = FALSE,
  return.Laplacian = FALSE,
  return.dense = FALSE
)

Arguments

graph

Graph adjacency list.

nev

Number of nontrivial eigenvalues/eigenvectors to compute.

use.R

Logical; use R/igraph implementation instead of native backend.

return.Laplacian

Logical; include the graph Laplacian in the result.

return.dense

Logical; return a dense Laplacian when requested.

Value

A list with evalues, evectors, and optionally laplacian.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.