This is a Python script that will take an OSM file and parse it into edges, nodes, and geometry files that can be used to create a graph in any language.