CharacteristicPolynomial - Maple Help

Online Help

All Products    Maple    MapleSim


GraphTheory

  

CharacteristicPolynomial

  

compute characteristic polynomial of graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

CharacteristicPolynomial(G, x)

Parameters

G

-

undirected graph

x

-

variable or value

Description

• 

CharacteristicPolynomial returns the characteristic polynomial of the adjacency matrix of a graph G, as a polynomial in x.

Examples

withGraphTheory:

withSpecialGraphs:

PGraph1,2,2,3

PGraph 1: an undirected unweighted graph with 3 vertices and 2 edge(s)

(1)

CharacteristicPolynomialP,x

x32x

(2)

AAdjacencyMatrixP

A010101010

(3)

LinearAlgebraCharacteristicPolynomialA,x

x32x

(4)

GShrikhandeGraph:

DiameterG

2

(5)

fCharacteristicPolynomialG,x

fx1648x1464x13+768x12+1536x115888x1015360x9+23040x8+81920x736864x6245760x532768x4+393216x3+196608x2262144x196608

(6)

eigvalssolvef

eigvals−2,2,6

(7)

numelemseigvals

3

(8)

See Also

AdjacencyMatrix

GraphSpectrum

LinearAlgebra[CharacteristicPolynomial]