aequilibrae.project.tools.network_simplifier#

Classes

NetworkSimplifier([project])

class aequilibrae.project.tools.network_simplifier.NetworkSimplifier(project=None)[source]#

Collapses links into nodes, adjusting the network in the neighborhood.

Arguments:

links (List[int]): List containing link IDs to be collapsed.

rebuild_network()[source]#

Rebuilds the network elements that would have to be rebuilt after massive network simplification

simplify(graph: Graph, max_speed_ratio: float = 1.1)[source]#

Simplifies the network by merging links that are shorter than a given threshold

Arguments:

graph (Graph): AequilibraE graph

max_speed_ratio (float, Optional): Maximum ratio between the fastest and slowest speed for a link to be considered for simplification.

signal = <aequilibrae.utils.python_signal.PythonSignal object>#