Module transit_grid::graphs
source · 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
- Represents the physical layout of the transit network.
- Represents an edge in the
TopologyGraph. - Represents a node in the
TopologyGraph. - Represents the topological graph of a transit network as a skew-symmetric graph.
- Represents a transit network as a graph with transit nodes and edges.
Traits
TopologyGraphRepairerprovides functionality to manipulate and repair edges in a topological graph.