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.
with⁡GraphTheory:
G≔SpecialGraphsHypercubeGraph⁡3
G≔Graph 1: an undirected graph with 8 vertices and 12 edge(s)
H≔Subdivide⁡G,000,001
H≔Graph 2: an undirected graph with 9 vertices and 13 edge(s)
Girth⁡H
4
OddGirth⁡H
5
See Also
CycleBasis
Girth
Download Help Document