title: Weighted Adjacency List with Python Networkx
body: <p>I have a graph defined in Python using the following structure:</p>
  
  <pre><code>graph = {
      "A": {"B": 10, "C": 3},
      "B": {"C": 1, "D": 2},
      "C": {"B": 4, "D": 8, "E": 2},
      "D": {"E": 7},
      "E": {"D": 9}
  }
  </code></pre>
  
  <p>Is there some way to read this into <code>networkx</code> please?</p>
  
  <p>I've tried <code>G = nx.read_adjlist(graph)</code> and looked at some of the <code>json</code> methods (<a href="https://networkx.github.io/documentation/stable/reference/readwrite/json_graph.html" rel="nofollow noreferrer">https://networkx.github.io/documentation/stable/reference/readwrite/json_graph.html</a>) but none seem to quite fit my use case.</p>