Skip to contents
flownet-package flownet
Efficient Transport Modeling

Network Processing

Utility functions to prepare networks graphs (represented using data frames) for analysis.

linestrings_to_graph()
Convert Linestring to Graph
create_undirected_graph()
Create Undirected Graph
consolidate_graph()
Consolidate Graph
simplify_network()
Simplify Network

Route Choice and Traffic Assignment

Run traffic assignment using path-sized logit model, including efficient built-in route choice algorithm, or all-or-nothing assignment to the shortest path.

run_assignment() print(<flownet>)
Run Traffic Assignment

Graph Utilities

Utility functions to normalized and extract information from graphs (represented using data frames).

normalize_graph()
Normalize Graph Node IDs
nodes_from_graph()
Extract Nodes from Graph
linestrings_from_graph()
Convert Graph to Linestrings
distances_from_graph()
Compute Distance Matrix from Graph

OD-Matrix Utilities

Utility functions to reshape origin-destination flow/trip matrices.

melt_od_matrix()
Melt Origin-Destination Matrix to Long Format

Data

Trans-African Road Network and Trade Data

africa_cities_ports
African Cities and International Ports
africa_network
Trans-African Road Transport Network
africa_segments
Raw Network Segments for Trans-African Transport Network
africa_trade
Intra-African Trade Flows by HS Section