<｜begin▁of▁sentence｜>### Instruction:
Given a LEDA graph formatted string representing a graph with 2 nodes and a single edge between them, how can you create a NetworkX graph from this data?
### Response:
import networkx as nx

# LEDA graph formatted string
leda_str = '''
LEDA.GRAPH
string
short
-2
2
|{node 1}|
|{node 2}|
1
2
1
0
|{}|
'''

# Parse the LEDA formatted string into a NetworkX graph
G = nx.parse_leda(leda_str.split('\n'))

# Display information about the graph
print(nx.info(G))
<|EOT|>
