Data & tools
OSMnx let me query OpenStreetMap for Hong Kong’s drivable network and turn it into a directed multigraph. With NetworkX I computed metrics and paths; Pandas helped with tidy tables; Matplotlib handled plots.
import osmnx as ox import networkx as nx import pandas as pd import numpy as np import matplotlib.pyplot as plt