Skip to content

API Reference

This section contains the complete API reference for the city2graph package.

City2Graph provides a comprehensive toolkit for constructing graphs from geospatial datasets, enabling network analysis and graph neural network applications on urban data.

Modules

Module Description
Graph Converting between GeoDataFrames, NetworkX, and PyTorch Geometric
Metapath Adding metapath-derived edges to heterogeneous graphs
Morphology Creating morphological graphs from urban form data
Transportation Processing GTFS data and transportation networks
Mobility Processing OD matrices and mobility networks
Proximity Generating proximity-based graph networks
Data Loading and processing geospatial data from sources like Overture Maps
Utils Core utilities for graph conversion and validation