<｜begin▁of▁sentence｜>### Instruction:
As a legal assistant, I often need to organize and present complex information in a clear and structured manner. Imagine you are working in a law firm and have been tasked with organizing a detailed case file with interconnected information. You have a directed graph representing the relationships between different parties and important events in the case.

Your task is to convert this graph into a dictionary of dictionaries format, where each key corresponds to a party or event, and the nested dictionary specifies the attributes of the relationships with other parties or events, including any relevant details such as the nature of the interaction, the date, and other pertinent information.

This organized structure will help in preparing for court proceedings, presenting evidence, and ensuring all relevant details are easily accessible when building a case.
### Response:
import networkx as nx

# Create a NetworkX graph
G = nx.DiGraph()
# Add some nodes and edges
G.add_edge('A', 'B', weight=7)
G.add_edge('B', 'C', weight=9)

# Convert to dictionary of dicts
graph_dict = nx.to_dict_of_dicts(G)
print(graph_dict)
<|EOT|>
