title: OSM to DIRECTED Graph (python-igraph / networkx)
body: <p>I am using this python script to download OSM data and convert it to an undirected networkx graph:</p>
  
  <p><a href="https://gist.github.com/rajanski/ccf65d4f5106c2cdc70e" rel="nofollow">https://gist.github.com/rajanski/ccf65d4f5106c2cdc70e</a></p>
  
  <p>However,in the ideal case, I would like to generate a directed graph from it in order to refelct the directionality of the osm street network.</p>
  
  <p>First of all, can you confirm that as stated  <a href="https://help.openstreetmap.org/answer_link/15463/" rel="nofollow">here</a> and <a href="https://wiki.openstreetmap.org/wiki/Way" rel="nofollow">here</a> in OSM raw xml data, the order of the nd-entries in the way is what matters for the direction?</p>
  
  <p>And secondly, how would you suggest to implement the generation of a directed graph from the osm raw data, give the the above gist code snippet as a template?</p>
  
  <p>many thanks!</p>