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

Online Help

All Products    Maple    MapleSim


GraphTheory

  

Girth

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Girth(G)

Parameters

G

-

undirected unweighted graph

Description

• 

Girth returns the length of the shortest cycle in a simple graph.

Examples

> 

with⁡GraphTheory:

> 

with⁡SpecialGraphs:

> 

G≔HypercubeGraph⁡3

G≔Graph 1: an undirected graph with 8 vertices and 12 edges

(1)
> 

Girth⁡G

4

(2)
> 

P≔PetersenGraph⁡

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

(3)
> 

Girth⁡P

5

(4)

See Also

CycleBasis

OddGirth