Girth (graph theory) explained

In graph theory, the girth of an undirected graph is the length of a shortest cycle contained in the graph.[1] If the graph does not contain any cycles (that is, it is a forest), its girth is defined to be infinity.For example, a 4-cycle (square) has girth 4. A grid has girth 4 as well, and a triangular mesh has girth 3. A graph with girth four or more is triangle-free.

Cages

See main article: Cage (graph theory). A cubic graph (all vertices have degree three) of girth that is as small as possible is known as a -cage (or as a -cage). The Petersen graph is the unique 5-cage (it is the smallest cubic graph of girth 5), the Heawood graph is the unique 6-cage, the McGee graph is the unique 7-cage and the Tutte eight cage is the unique 8-cage.[2] There may exist multiple cages for a given girth. For instance there are three nonisomorphic 10-cages, each with 70 vertices: the Balaban 10-cage, the Harries graph and the Harries–Wong graph.

Girth and graph coloring

For any positive integers and, there exists a graph with girth at least and chromatic number at least ; for instance, the Grötzsch graph is triangle-free and has chromatic number 4, and repeating the Mycielskian construction used to form the Grötzsch graph produces triangle-free graphs of arbitrarily large chromatic number. Paul Erdős was the first to prove the general result, using the probabilistic method.[3] More precisely, he showed that a random graph on vertices, formed by choosing independently whether to include each edge with probability, has, with probability tending to 1 as goes to infinity, at most cycles of length or less, but has no independent set of size . Therefore, removing one vertex from each short cycle leaves a smaller graph with girth greater than, in which each color class of a coloring must be small and which therefore requires at least colors in any coloring.

Explicit, though large, graphs with high girth and chromatic number can be constructed as certain Cayley graphs of linear groups over finite fields. These remarkable Ramanujan graphs also have large expansion coefficient.

Related concepts

The odd girth and even girth of a graph are the lengths of a shortest odd cycle and shortest even cycle respectively.

The of a graph is the length of the longest (simple) cycle, rather than the shortest.

Thought of as the least length of a non-trivial cycle, the girth admits natural generalisations as the 1-systole or higher systoles in systolic geometry.

Girth is the dual concept to edge connectivity, in the sense that the girth of a planar graph is the edge connectivity of its dual graph, and vice versa. These concepts are unified in matroid theory by the girth of a matroid, the size of the smallest dependent set in the matroid. For a graphic matroid, the matroid girth equals the girth of the underlying graph, while for a co-graphic matroid it equals the edge connectivity.[4]

Computation

The girth of an undirected graph can be computed by running a breadth-first search from each node, with complexity

O(nm)

where

n

is the number of vertices of the graph and

m

is the number of edges.[5] A practical optimization is to limit the depth of the BFS to a depth that depends on the length of the smallest cycle discovered so far.[6] Better algorithms are known in the case where the girth is even[7] and when the graph is planar.[8] In terms of lower bounds, computing the girth of a graph is at least as hard as solving the triangle finding problem on the graph.

References

  1. R. Diestel, Graph Theory, p.8. 3rd Edition, Springer-Verlag, 2005
  2. . Electronic supplement to the book Distance-Regular Graphs (Brouwer, Cohen, and Neumaier 1989, Springer-Verlag).
  3. .
  4. .
  5. Web site: Question 3: Computing the girth of a graph . February 22, 2023 . August 29, 2017 . https://web.archive.org/web/20170829175217/http://webcourse.cs.technion.ac.il/234247/Winter2003-2004/ho/WCFiles/Girth.pdf . dead .
  6. Web site: Völkel . Christoph Dürr, Louis Abraham and Finn . 2016-11-06 . Shortest cycle . 2023-02-22 . TryAlgo . en-US.
  7. Web site: ds.algorithms - Optimal algorithm for finding the girth of a sparse graph? . 2023-02-22 . Theoretical Computer Science Stack Exchange . en.
  8. Chang . Hsien-Chih . Lu . Hsueh-I. . 2013 . Computing the Girth of a Planar Graph in Linear Time . SIAM Journal on Computing . 42 . 3 . 1077–1094 . 10.1137/110832033 . 1104.4892 . 2493979 . 0097-5397.