GraphTheory
IsIntegerGraph
Calling Sequence
Parameters
Description
Examples
IsIntegerGraph(G)
G
-
a graph
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.
withGraphTheory:
withSpecialGraphs:
K3≔CompleteGraph3
K3≔Graph 1: an undirected graph with 3 vertices and 3 edge(s)
IsIntegerGraphK3
true
factorCharacteristicPolynomialK3,x
x−2x+12
P3≔PathGraph3
P3≔Graph 2: an undirected graph with 3 vertices and 2 edge(s)
IsIntegerGraphP3
false
factorCharacteristicPolynomialP3,x
xx2−2
H≔LeviGraph
H≔Graph 3: an undirected graph with 30 vertices and 45 edge(s)
IsIntegerGraphH
factorCharacteristicPolynomialH,x
x10x−3x+3x−29x+29
See Also
CharacteristicPolynomial
GraphSpectrum
Download Help Document