
Description
Urban mobility research or spatial GNN work spends most of its time turning buildings, streets and transit lines into graph structures. City2Graph is a Python library that converts geospatial relations directly into graphs, bridging GeoPandas, NetworkX and PyTorch Geometric.
It builds building and street morphology graphs from OpenStreetMap and Overture Maps, loads GTFS and GBFS feeds, and handles OD matrices and POIs for both network analysis and GNNs.
Morphology:Building and street graphs from OSM and Overture.
Transportation:GTFS transit and GBFS mobility feeds.
Interop:GeoPandas, NetworkX and PyTorch Geometric.
It builds building and street morphology graphs from OpenStreetMap and Overture Maps, loads GTFS and GBFS feeds, and handles OD matrices and POIs for both network analysis and GNNs.
Features
Morphology:Building and street graphs from OSM and Overture.
Transportation:GTFS transit and GBFS mobility feeds.
Interop:GeoPandas, NetworkX and PyTorch Geometric.

