GraphTheory
IsPerfectGraph
test if graph is perfect
Calling Sequence
Parameters
Options
Description
Definition
Examples
Compatibility
IsPerfectGraph(G,opts)
G
-
graph
opts
(optional) one or more options as specified below
usecached : keyword option of the form usecached=true or usecached=false.
Specifies whether previously stored information should be used, if available. The default is true.
The IsPerfectGraph(G) command returns true if G is a perfect graph and false otherwise.
An undirected graph G is perfect if in every subgraph of G, the chromatic number is equal to the clique number.
Split graphs are closed under graph complement.
Every chordal graph is a perfect graph.
Every split graph is a perfect graph.
with⁡GraphTheory:
The cycle graph on four vertices is not perfect.
C5≔CycleGraph⁡5
C5≔Graph 1: an undirected graph with 5 vertices and 5 edge(s)
IsPerfectGraph⁡C5
false
The complete graph on four vertices is perfect.
K5≔CompleteGraph⁡5
K5≔Graph 2: an undirected graph with 5 vertices and 10 edge(s)
IsPerfectGraph⁡K5
true
The Petersen graph is not perfect.
P≔SpecialGraphs:-PetersenGraph⁡
P≔Graph 3: an undirected graph with 10 vertices and 15 edge(s)
IsPerfectGraph⁡P
The GraphTheory[IsPerfectGraph] command was introduced in Maple 2022.
For more information on Maple 2022 changes, see Updates in Maple 2022.
See Also
ChromaticNumber
CliqueNumber
GroupTheory[IsPerfect]
MaximumMatching
Download Help Document