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

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

withGraphTheory:

The cycle graph on four vertices is not perfect.

C5CycleGraph5

C5Graph 1: an undirected graph with 5 vertices and 5 edge(s)

(1)

IsPerfectGraphC5

false

(2)

The complete graph on four vertices is perfect.

K5CompleteGraph5

K5Graph 2: an undirected graph with 5 vertices and 10 edge(s)

(3)

IsPerfectGraphK5

true

(4)

The Petersen graph is not perfect.

PSpecialGraphs:-PetersenGraph

PGraph 3: an undirected graph with 10 vertices and 15 edge(s)

(5)

IsPerfectGraphP

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