Examples

Every notebook runs on Vasilyevsky Island in Saint Petersburg (OSM relation 1114252) and ends with the changes needed for your own area. The notebooks are stored with their outputs; to run one, install IduEdu and open it in Jupyter.

Notebook

Contents

Build transport graphs

Drive, walk, public-transport and intermodal graphs; simplify and clipping

UrbanGraph basics

The node and edge tables, validation, adjacency matrices, .urbangraph archives

Graph operations

Subgraphs, clipping, joins, relabelling, direction and parallel edges

Connectivity diagnostics

Connected, weakly and strongly connected components

Objects, nearest nodes, and graph projection

Nearest nodes and edges, objects projected onto the graph

Shortest paths and OD matrices

Costs and routes from one or many sources, OD matrices, lazy paths, matrices in blocks

Routes between two points

Bidirectional search, A* and ALT compared; alternative routes and k shortest routes

Network analysis

Network statistics by zone and around nodes, residents within a walking time, nearest objects, diversity, centralities

Elevation and cycling

Heights and grades, walking times on slopes, a bike graph with its level of traffic stress

Transport registry

The default speeds and waits of public transport, a custom registry

GTFS public transport

A graph from GTFS feeds: service days, waits, merging feeds, joining with a walk graph