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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

IsChordal

  

test if graph is chordal

 

Calling Sequence

Parameters

Options

Description

Definition

Examples

Compatibility

Calling Sequence

IsChordal(G,opts)

Parameters

G

-

graph

opts

-

(optional) one or more options as specified below

Options

• 

eliminationordering : keyword option of the form eliminationordering=true or eliminationordering=false.

  

Specifies whether an elimination ordering should be returned when G is chordal. The default is false.

• 

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 IsChordal(G) command returns true if G is a chordal graph and false otherwise.

Definition

• 

An undirected graph G is chordal if every cycle of length 4 or more has a chord, that is, an edge that is not part of the cycle but connects two vertices of the cycle.

• 

Every interval graph is a chordal graph.

• 

Every split graph is a chordal graph.

Examples

withGraphTheory:

The cycle graph on four vertices is not chordal by definition, since it is a 4-cycle without a chord.

C4CycleGraph4

C4Graph 1: an undirected graph with 4 vertices and 4 edge(s)

(1)

IsChordalC4

false

(2)

The complete graph on four vertices is chordal.

K4CompleteGraph4

K4Graph 2: an undirected graph with 4 vertices and 6 edge(s)

(3)

IsChordalK4

true

(4)

The Petersen graph is not chordal.

PSpecialGraphs:-PetersenGraph

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

(5)

IsChordalP

false

(6)

Compatibility

• 

The GraphTheory[IsChordal] command was introduced in Maple 2022.

• 

For more information on Maple 2022 changes, see Updates in Maple 2022.

See Also

CliqueNumber

CycleBasis