IsIntegerGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsIntegerGraph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

IsIntegerGraph(G)

Parameters

G

-

a graph

Description

• 

IsIntegerGraph returns true if its argument G is an integer graph, namely if the spectrum of G consists of only integer numbers, and false otherwise.

Examples

> 

with⁡GraphTheory:

> 

with⁡SpecialGraphs:

> 

K3≔CompleteGraph⁡3

K3≔Graph 1: an undirected graph with 3 vertices and 3 edges

(1)
> 

IsIntegerGraph⁡K3

true

(2)
> 

factor⁡CharacteristicPolynomial⁡K3,x

x−2⁢x+12

(3)
> 

P3≔PathGraph⁡3

P3≔Graph 2: an undirected graph with 3 vertices and 2 edges

(4)
> 

IsIntegerGraph⁡P3

false

(5)
> 

factor⁡CharacteristicPolynomial⁡P3,x

x⁢x2−2

(6)
> 

H≔LeviGraph⁡

H≔Graph 3: an undirected graph with 30 vertices and 45 edges

(7)
> 

IsIntegerGraph⁡H

true

(8)
> 

factor⁡CharacteristicPolynomial⁡H,x

x10⁢x−3⁢x+3⁢x−29⁢x+29

(9)

See Also

CharacteristicPolynomial

GraphSpectrum