<｜begin▁of▁sentence｜>### Instruction:
Using the edge sets edges1 = [(1, 2), (2, 3), (3, 1)] and edges2 = [(3, 1), (1, 2), (2, 3)], determine if they represent the same edges in a graph, disregarding the order in which they are listed.
### Response:
import networkx as nx

# Define two sets of edges
edges1 = [(1, 2), (2, 3), (3, 1)]
edges2 = [(3, 1), (1, 2), (2, 3)]

# Use edges_equal to determine if the edge sets are equal
are_equal = nx.utils.edges_equal(edges1, edges2)

print('The edges are equal:', are_equal)
<|EOT|>
