Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

spectral_gap

Spectral gap of a graph


Description

The spectral (or eigen) gap of a graph is the absolute difference between the biggest and second biggest eigenvalue of the adjacency matrix. To compare spectral gaps across networks, the fraction can be used.

Usage

spectral_gap(g, method = "frac")

Arguments

g

igraph object

method

A string, either "frac" or "abs"

Details

The spectral gap is bounded between 0 and 1 if method="frac". The closer the value to one, the bigger the gap.

Value

Numeric value

Author(s)

David Schoch

Examples

#The fractional spectral gap of a threshold graph is usually close to 1
g <- threshold_graph(50,0.3)
spectral_gap(g,method = "frac")

netrankr

Analyzing Partial Rankings in Networks

v0.3.0
MIT + file LICENSE
Authors
David Schoch [aut, cre], Julian Müller [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.