Skip to main content
Ctrl+K

AequilibraE

    • Main menu
    • The AequilibraE Project
    • Run module
    • Network manipulation
    • Distribution Procedures
    • Path Computation
    • Traffic Assignment
    • Public Transport
    • Route choice
    • Other Applications
  • Python
  • QGIS
  • GitHub
    • Main menu
    • The AequilibraE Project
    • Run module
    • Network manipulation
    • Distribution Procedures
    • Path Computation
    • Traffic Assignment
    • Public Transport
    • Route choice
    • Other Applications
  • Python
  • QGIS
  • GitHub

Section Navigation

  • aequilibrae
    • aequilibrae.context
    • aequilibrae.distribution
    • aequilibrae.log
    • aequilibrae.matrix
    • aequilibrae.parameters
    • aequilibrae.paths
    • aequilibrae.project
      • aequilibrae.project.about
      • aequilibrae.project.basic_table
      • aequilibrae.project.data
      • aequilibrae.project.data_loader
      • aequilibrae.project.database_connection
      • aequilibrae.project.field_editor
      • aequilibrae.project.network
        • aequilibrae.project.network.connector_creation
        • aequilibrae.project.network.gmns_builder
        • aequilibrae.project.network.gmns_exporter
        • aequilibrae.project.network.haversine
        • aequilibrae.project.network.link
        • aequilibrae.project.network.link_type
        • aequilibrae.project.network.link_types
        • aequilibrae.project.network.links
        • aequilibrae.project.network.mode
        • aequilibrae.project.network.modes
        • aequilibrae.project.network.network
        • aequilibrae.project.network.node
        • aequilibrae.project.network.nodes
        • aequilibrae.project.network.osm
        • aequilibrae.project.network.period
        • aequilibrae.project.network.periods
        • aequilibrae.project.network.safe_class
      • aequilibrae.project.project
      • aequilibrae.project.project_cleaning
      • aequilibrae.project.project_creation
      • aequilibrae.project.scenario
      • aequilibrae.project.table_loader
      • aequilibrae.project.tools
      • aequilibrae.project.zone
      • aequilibrae.project.zoning
    • aequilibrae.reference_files
    • aequilibrae.transit
    • aequilibrae.utils
  • aequilibrae.project.network.links

aequilibrae.project.network.links#

Classes

Links(net)

Access to the API resources to manipulate the links table in the network

class aequilibrae.project.network.links.Links(net)[source]#

Access to the API resources to manipulate the links table in the network

>>> project = create_example(project_path)

>>> all_links = project.network.links

# We can just get one link in specific
>>> link = all_links.get(1)

# We can save changes for all links we have edited so far
>>> all_links.save()

>>> project.close()
copy_link(link_id: int) → Link[source]#

Creates a copy of a link with a new id

It raises an error if link_id does not exist

Arguments:

link_id (int): Id of the link to copy

Returns:

link (Link): Link object for requested link_id

delete(link_id: int) → None[source]#

Removes the link with link_id from the project

Arguments:

link_id (int): Id of a link to delete

extent() → Polygon#

Queries the extent of the layer included in the model

Returns:

model extent (Polygon): Shapely polygon with the bounding box of the layer.

get(link_id: int) → Link[source]#

Get a link from the network by its link_id

It raises an error if link_id does not exist

Arguments:

link_id (int): Id of a link to retrieve

Returns:

link (Link): Link object for requested link_id

new() → Link[source]#

Creates a new link

Returns:

link (Link): A new link object populated only with link_id (not saved in the model yet)

refresh()[source]#

Refreshes all the links in memory

refresh_fields() → None[source]#

After adding a field one needs to refresh all the fields recognized by the software

save()[source]#
property data: GeoDataFrame#

Returns all links data as a Pandas DataFrame

Returns:

table (GeoDataFrame): GeoPandas GeoDataFrame with all the nodes

property fields: FieldEditor#

Returns a FieldEditor class instance to edit the zones table fields and their metadata

sql = ''#

Query sql for retrieving links

On this page
  • Links
    • Links.copy_link()
    • Links.delete()
    • Links.extent()
    • Links.get()
    • Links.new()
    • Links.refresh()
    • Links.refresh_fields()
    • Links.save()
    • Links.data
    • Links.fields
    • Links.sql

This Page

  • Show Source

© Copyright 2025-09-09, AequilibraE developers.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.