GraphTheory
OddGirth
find length of shortest odd cycle
Calling Sequence
Parameters
Description
Examples
OddGirth(G)
G
-
undirected unweighted graph
OddGirth returns the length of the shortest odd cycle in a simple graph.
withGraphTheory:
G≔SpecialGraphsHypercubeGraph3
G≔Graph 1: an undirected graph with 8 vertices and 12 edge(s)
H≔SubdivideG,000,001
H≔Graph 2: an undirected graph with 9 vertices and 13 edge(s)
GirthH
4
OddGirthH
5
See Also
CycleBasis
Girth
Download Help Document