Learn R Programming

QuACN (version 1.8.0)

spectralRadius: Spectral radius

Description

This method calculates the spectral radius of a graph.

Usage

spectralRadius(g)

Arguments

g
a graph as a graphNEL object.

Value

double-precision floating point value.

Examples

Run this code

library(graph)
set.seed(123)
g <- randomEGraph(as.character(1:9), 0.5)

spectralRadius(g)

Run the code above in your browser using DataLab