title: Getting the shortest path with networkx, but pass additional stops the path should go through
body: <p>I am searching for a way to not only pass an orgi and dest to the shortest pass function of <a href="https://networkx.org" rel="nofollow noreferrer">networkx</a> but also some additional edges/nodes where the pass should go through.</p>
  <p>My goal is it to use <a href="https://github.com/gboeing/osmnx" rel="nofollow noreferrer">osmnx</a> to generate a route that will consider additional stops.</p>
  <p>so far I am using the shortest path function to pass a start and a destination. However I would also like to add a list of edges that should be used while going from start to destination.</p>
  <pre><code>shortest_path(G, orig_edge, dest_edge, 'length')
  </code></pre>
  <p>Do you guys have any idea how to easily do that?</p>