<｜begin▁of▁sentence｜>### Instruction:
Given an identity matrix as a SciPy sparse array, how can you create a corresponding NetworkX graph and print its edges?
### Response:
import networkx as nx
import scipy.sparse as sp

# Create a SciPy sparse array (e.g., an identity matrix)
A = sp.sparse.eye(3, 3, 1)

# Use `from_scipy_sparse_array` to create a NetworkX graph from the SciPy sparse array
G = nx.from_scipy_sparse_array(A)

# Print the edges of the graph
print(list(G.edges(data=True)))
<|EOT|>
