aequilibrae.project.tools.network_simplifier.NetworkSimplifier#

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

Methods

__init__([project])

collapse_links_into_nodes(links)

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

rebuild_network()

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

simplify(graph[, max_speed_ratio])

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

Attributes

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>#