
City2Graph
Transform geospatial relations into graphs for Graph Neural Networks and spatial network analysis
About
City2Graph is a Python library that turns buildings, streets, public transport feeds, origin–destination matrices, zones, and points of interest into spatial and heterogeneous graphs. It bridges GeoPandas, NetworkX, and PyTorch Geometric so the same geospatial data can support network analysis, urban research, and Graph Neural Networks (GNNs). See the documentation for installation, tutorials, and the Python API reference.
Open Source Health
- Stars
- 1,914
- Forks
- 198
- License
- BSD-3-Clause
- Last commit
- 1 months ago
Related Categories
Vendor

c2g-dev
Open-source project on GitHub: City2Graph
Quick Links
Open Source
Related Products
Fiona
Fiona reads and writes spatial data files
Top category match
Fmm
Fast map matching, an open source framework in C++
Top category match
Cesium
An open-source JavaScript library for world-class 3D globes and maps :earthamericas
Top category match
FreeGeoDB
Free database of geographic place names and corresponding geospatial data
Top category match
osgEarth
3D Maps & Terrain SDK (C++)
Top category match