title: How does this python code represent a weighted directed graph
body: <p>I am trying to do some hw with Dijkstra algorithm but I am having trouble visualizing what this input would like as a graph. The code is python. How is that a graph?</p>
  
  <pre><code>example = [[(1, 1), (2, 2), (4, 3)], [(1, 3), (3, 4)], [(2, 3), (3, 5)], [(1, 4), (2, 5)], [], []]
  </code></pre>