<｜begin▁of▁sentence｜>### Instruction:
Given a 2D NumPy array representing an adjacency matrix where the (i, j)-entry is 1 if there is an edge between node i and node j and 0 otherwise, how would you use NetworkX to convert this array into a graph and then print the edges of the created graph?
### Response:
import networkx as nx
import numpy as np

# Create a 2D numpy array as an adjacency matrix
A = np.array([[0, 1, 1], [1, 0, 0], [1, 0, 0]])

# Convert the 2D numpy array to a graph
G = nx.from_numpy_array(A)

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