<｜begin▁of▁sentence｜>### Instruction:
Given a simple undirected graph created in NetworkX with nodes 1, 2, and 3 and edges (1,2) and (2,3), can you pickle the graph using its __reduce__ method and store the pickling data into a file named 'graph.pickle'?
### Response:
import networkx as nx
import json

# Create a simple graph
G = nx.Graph()
G.add_edge(1, 2)
G.add_edge(2, 3)

# Use the __reduce__ method to support pickling
reduce_data = G.__reduce__()

# You could then use the reduce_data to pickle the graph
with open('graph.pickle', 'wb') as f:
    json.dump(reduce_data, f)
<|EOT|>
