pyrosm.graphs.graph_tables#
- pyrosm.graphs.graph_tables(nodes, edges, direction='oneway', from_id_col='u', to_id_col='v', node_id_col='id', force_bidirectional=False, network_type=None, retain_all=False, simplify=True, simplify_kwargs=None, progress=None)#
The nodes and edges of a graph as GeoDataFrames, as the graph exporters build it: the edges directed (see
get_directed_edges()), unlessretain_allonly their largest connected part kept, and simplified whensimplify, as when the connected part is kept before simplifying (as OSMnx does). Edges with an end node that is not amongnodesare left out; nodes and edges are numbered from 0. The parameters are those ofto_networkx(), alsoprogress.