Expand description
This module contains the definition and implementation of various types of graphs used to represent and manipulate transit networks.
The graphs module provides three submodules:
-
physical- This module contains thePhysicalGraphstructure and its associated functionality. ThePhysicalGraphrepresents the physical layout of the transit network, including routes and nodes. -
topology- This module contains theTopologyGraphand its associated structures (TopoNode,TopoEdge), as well as their related functionality. TheTopologyGraphrepresents the topological layout of the transit network, abstracting away the details of the physical layout. -
transit_network- This module contains theTransitNetworkstructure, which provides a higher-level interface to the physical and topological graphs. It combines the functionalities of the physical and topological graphs and offers a unified and simplified interface for interacting with the transit network.
By using the graphs module, one can easily create, modify, and interact with various representations of transit networks.
Structs§
- Physical
Graph - Represents the physical layout of the transit network.
- Topo
Edge - Represents an edge in the
TopologyGraph. - Topo
Node - Represents a node in the
TopologyGraph. - Topology
Graph - Represents the topological graph of a transit network as a skew-symmetric graph.
- Transit
Network - Represents a transit network as a graph with transit nodes and edges.
Traits§
- Topology
Graph Repairer TopologyGraphRepairerprovides functionality to manipulate and repair edges in a topological graph.