<｜begin▁of▁sentence｜>### Instruction:
As a literary agent, I often work with authors to negotiate publishing deals and manage their literary rights and contracts for their works. In this scenario, imagine that I am representing an author who has written a book that explores social networks and connections. Using my knowledge of NetworkX, a Python library, I need to extract and print the specific attributes of an interaction between two characters in the author's book, which will help inform our discussions with publishers.
### Response:
import networkx as nx

# Create a NetworkX graph
g = nx.Graph()

# Add an edge with attributes
g.add_edge(1, 2, weight=4.7, color='blue')

# Retrieve the attributes of the edge
edge_attributes = g[1][2]

# Output the attributes of the edge
print(edge_attributes)
<|EOT|>
