pyrosm.graphs.graph_tables

Contents

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()), unless retain_all only their largest connected part kept, and simplified when simplify, as when the connected part is kept before simplifying (as OSMnx does). Edges with an end node that is not among nodes are left out; nodes and edges are numbered from 0. The parameters are those of to_networkx(), also progress.