I'm downloading a road network using OSMnx for the San Francisco region. Compared to directly converting the downloaded graph to nodes and edges using graph_to_gdfs() without saving it, I get a different number of nodes and edges of the graph by saving it using osmnx.io.save_graph_xml(), re-creating the graph using osmnx.graph_from_xml(), and finally converting it using the graph_to_gdfs(). By directly converting the graph, I get 9671 nodes and 16030 edges. But, by first saving and then re-creating the same graph, I get 9649 nodes and 15975 edges. Please see the minimal reproducible example below. Thank you so much for your help and cooperation!
Contributing guidelines
Documentation
Existing issues
What operating system and Python version are you using?
MacOS/Python 3.11
What OSMnx version are you using?
1.5.0
Environment packages and versions
How did you install OSMnx?
Conda and conda-forge
Problem description
Hi,
I'm downloading a road network using OSMnx for the San Francisco region. Compared to directly converting the downloaded graph to nodes and edges using graph_to_gdfs() without saving it, I get a different number of nodes and edges of the graph by saving it using osmnx.io.save_graph_xml(), re-creating the graph using osmnx.graph_from_xml(), and finally converting it using the graph_to_gdfs(). By directly converting the graph, I get 9671 nodes and 16030 edges. But, by first saving and then re-creating the same graph, I get 9649 nodes and 15975 edges. Please see the minimal reproducible example below. Thank you so much for your help and cooperation!
Complete minimal reproducible example