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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsPerfectGraph

  

test if graph is perfect

 

Calling Sequence

Parameters

Options

Description

Definition

Examples

Compatibility

Calling Sequence

IsPerfectGraph(G,opts)

Parameters

G

-

graph

opts

-

(optional) one or more options as specified below

Options

• 

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.

Description

• 

The IsPerfectGraph(G) command returns true if G is a perfect graph and false otherwise.

Definition

• 

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.

Examples

> 

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 edges

(1)
> 

IsPerfectGraph⁡C5

false

(2)

The complete graph on four vertices is perfect.

> 

K5≔CompleteGraph⁡5

K5≔Graph 2: an undirected graph with 5 vertices and 10 edges

(3)
> 

IsPerfectGraph⁡K5

true

(4)

The Petersen graph is not perfect.

> 

P≔SpecialGraphs:-PetersenGraph⁡

P≔Graph 3: an undirected graph with 10 vertices and 15 edges

(5)
> 

IsPerfectGraph⁡P

false

(6)

Compatibility

• 

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