Network Analysis, Python, Qgis.
enumerate(list(Gp)) if x == node[1]] print(X0_node, X1_node) We can then use these nodes to calculate and plot the shortest path between the two points based on distance: Note: the calculation is weighted by road length else all edges (roads) are considered equal distance. orig =