9.5.1. aequilibrae.Graph

class aequilibrae.Graph

Bases: object

Graph class

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

available_skims()

Returns graph fields that are available to be set as skims

create_from_geography(geo_file, id_field, …)

Creates a graph from a Shapefile.

default_types(tp)

Returns the default integer and float types used for computation

exclude_links(links)

Excludes a list of links from a graph by setting their B node equal to their A node

load_from_disk(filename)

Loads graph from disk

prepare_graph(centroids)

Prepares the graph for a computation for a certain set of centroids

save_to_disk(filename)

Saves graph to disk

set_blocked_centroid_flows(block_centroid_flows)

Chooses whether we want to block paths to go through centroids or not.

set_graph(cost_field)

Sets the field to be used for path computation

set_skimming(skim_fields)

Sets the list of skims to be computed

__init__()

Initialize self. See help(type(self)) for accurate signature.