GraphTheory
IsRamanujanGraph
test if graph is Ramanujan
Calling Sequence
Parameters
Options
Description
Definition
Ramanujan graphs in SpecialGraphs
Examples
Compatibility
IsRamanujanGraph(G,opts)
G
-
graph
opts
(optional) equation of the form parameters=true or parameters=false
parameters : keyword option of the form parameters=true or parameters=false. This specifies whether the parameters [d, lambda] should be returned when the graph is Ramanujan. The default is false.
The IsRamanujanGraph(G) command returns true if G is a Ramanujan graph and false otherwise.
An undirected graph G is Ramanujan if it is a regular graph with degree d and lambda≤2⁢d−1, where lambda is the maximum of the absolute values of all the eigenvalues of the adjacency matrix of G excluding the greatest eigenvalue d.
These graphs are named after Srinivasa Ramanujan.
The following are graphs in the SpecialGraphs subpackage which are Ramanujan.
Graph
Number of Vertices
d
lambda
Petersen graph
10
3
Icosahedron graph
12
5
sqrt(5)
Clebsch graph
16
Complete graph
d-1
1
Paley graph
p
(q-1)/2
(sqrt(q)+1)/2
with⁡GraphTheory:
with⁡SpecialGraphs:
G≔Graph⁡1,2,1,3,2,3,3,4
G≔Graph 1: an undirected graph with 4 vertices and 4 edge(s)
IsRamanujanGraph⁡G
false
P≔PetersenGraph⁡
P≔Graph 2: an undirected graph with 10 vertices and 15 edge(s)
IsRamanujanGraph⁡P,parameters
true,3,2.000000000
P≔PaleyGraph⁡29
P≔Graph 3: an undirected graph with 29 vertices and 203 edge(s)
true,14,3.192582400
C≔ClebschGraph⁡
C≔Graph 4: an undirected graph with 16 vertices and 40 edge(s)
IsRamanujanGraph⁡C,parameters
true,5,3.000000000
The GraphTheory[IsRamanujanGraph] command was introduced in Maple 2023.
For more information on Maple 2023 changes, see Updates in Maple 2023.
See Also
Degree
DegreeSequence
IsRegular
Download Help Document