<｜begin▁of▁sentence｜>### Instruction:
Given a dict of dicts representation of a graph where each key is a node and values are dictionaries with neighboring nodes as keys and edge weights, how can you create a NetworkX graph using the 'to_networkx_graph' function?
### Response:
import networkx as nx

# Generate a dict of dicts representation of a graph
input_data = {
  'A': {'B': 1.0, 'C': 2.0},
  'B': {'A': 1.0, 'C': 3.0},
  'C': {'A': 2.0, 'B': 3.0}
}

# Convert the dict of dicts to a NetworkX graph
G = nx.to_networkx_graph(input_data, create_using=nx.Graph)

# Print nodes and edges in the new NetworkX graph
print('Nodes:', list(G.nodes))
print('Edges:', list(G.edges(data=True)))
<|EOT|>
