<｜begin▁of▁sentence｜>### Instruction:
Given an adjacency list formatted graph data {'directed': False, 'multigraph': False, 'graph': [], 'nodes': [{'id': 1}, {'id': 2}, {'id': 3}], 'adjacency': [[{'id': 2}], [{'id': 1}, {'id': 3}], [{'id': 2}]]}, how can you restore a NetworkX graph from this data using the adjacency_graph function?
### Response:
import networkx as nx
from networkx.readwrite import json_graph

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

# Generate adjacency data format from graph
adjacency_data_format = json_graph.adjacency_data(G)

# Create a new graph from the adjacency data format
H = json_graph.adjacency_graph(adjacency_data_format)

print('Nodes of restored graph:', H.nodes())
print('Edges of restored graph:', H.edges())
<|EOT|>
