ua2nx

Converts UrbanAccess graph into NetworkX MultiDiGraph


License
MIT
Install
pip install ua2nx==0.0.4

Documentation

ua2nx

A simple conversion tool that converts UrbanAccess public transport network into NetworkX MultiDiGraph. After the conversion, you can use all the basic network analysis methods provided by NetworkX.

Installation

You can install the module with pip:

$ pip install ua2nx

Usage

Basic usage is as simple as:

from ua2nx import urbanaccess_to_nx
import urbanaccess as ua

# Load precalculated UrbanAccess graph that was saved into H5
uaG = ua.network.load_network(filename='tests/test_net.h5', dir='.')

# Convert to NetworkX MultiDiGraph
nxG = urbanaccess_to_nx(uaG)

Read the documentation of UrbanAccess to learn how to work with GTFS data and Urbanaccess.