GraphSpectrum - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

GraphSpectrum

  

compute spectrum of eigenvalues of a graph

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

GraphSpectrum(G, opt)

Parameters

G

-

graph

opt

-

(optional) the symbol exact or an equation of the form exact=true or false

Options

• 

exact=true or false

  

If exact or exact=true is specified, the eigenvalues are returned as exact expressions. If exact=false, the eigenvalues are returned as floating-point expressions. The default is false.

Description

• 

The GraphSpectrum command returns the spectrum of the eigenvalues of the adjacency matrix of a specified graph. The output is a list L. Each element of L is a list of size 2, where the first element is an eigenvalue and the second element is its multiplicity.

• 

If argument exact or exact=true is provided, the eigenvalues are returned as exact expressions. Otherwise the eigenvalues are returned as floating-point expressions.

Examples

withGraphTheory:

C5CycleGraph5

C5Graph 1: an undirected graph with 5 vertices and 5 edge(s)

(1)

GraphSpectrumC5

−1.618033990,2,0.6180339900,2,2.000000000,1

(2)

GraphSpectrumC5,exact

5212,2,5212,2,2,1

(3)

fCharacteristicPolynomialC5,x

fx55x3+5x2

(4)

factorf

x2x2+x12

(5)

See Also

AdjacencyMatrix

CharacteristicPolynomial

IsIntegerGraph

SeidelSpectrum