Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

UndirectedGraphs

Guides

  • GraphConstructionandRepresentation
  • Graph Functions
  • GraphOperationsandModifications
  • GraphPropertiesAndMeasurements
  • GraphVisualization
  • Paths, Cycles, and Flows
  • Computation on Graphs

Symbols

  • AlternatingTreeGraph
  • BananaTreeGraph
  • BookGraph
  • CoboundaryPolynomial
  • CombGraph
  • FirecrackerGraph
  • GearGraph
  • GeneralizedTriangularGridGraph
  • Girth
  • GraphicalDegreeSequenceQ
  • HelmGraph
  • IndependencePolynomial
  • KayakPaddleGraph
  • LadderRungGraph
  • PanGraph
  • PositiveIntegerQ
  • RankPolynomial
  • ReliabilityPolynomial
  • ResistanceMatrix
  • SunletGraph
  • TadpoleGraph
  • VertexCoordinateList
  • VertexInsert
PeterBurbery`UndirectedGraphs`
Girth
​
Girth
[g]
returns the girth of the graph
g
, i.e. the length of the shortest cycle in
g
.
​
Examples  
(1)
Basic Examples  
(1)
The girth of the Petersen graph:
In[1]:=
Girth
[PetersenGraph[]]
Out[1]=
5
The girth of a generalized Petersen graph:
In[2]:=
Girth
[Echo@PetersenGraph[3,4]]
»
Out[2]=
3
SeeAlso
FindCycle
RelatedGuides
▪
Graph Functions
▪
Paths, Cycles, and Flows
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com