<｜begin▁of▁sentence｜>### Instruction:
Given a set of edges [(1, 2), (1, 3), (2, 4)], how would you create a new Graph object in NetworkX, add the edges to this graph, and display the list of all edges?
### Response:
from networkx import Graph

# Create a new graph instance
G = Graph()

# Add some edges
G.add_edge(1, 2)
G.add_edge(1, 3)
G.add_edge(2, 4)

# Print the edges of the graph
print(G.edges())
<|EOT|>
