<｜begin▁of▁sentence｜>### Instruction:
Given a Petersen graph created using NetworkX, can you determine the girth of the graph, which is the length of its shortest cycle?
### Response:
import networkx as nx

# Create a graph
G = nx.petersen_graph()

# Calculate the girth of the graph
girth = nx.girth(G)

print('The girth of the graph is:', girth)
<|EOT|>
