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 thePhysicalGraph
structure and its associated functionality. ThePhysicalGraph
represents the physical layout of the transit network, including routes and nodes. -
topology
- This module contains theTopologyGraph
and its associated structures (TopoNode
,TopoEdge
), as well as their related functionality. TheTopologyGraph
represents the topological layout of the transit network, abstracting away the details of the physical layout. -
transit_network
- This module contains theTransitNetwork
structure, 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
TopologyGraphRepairer
provides functionality to manipulate and repair edges in a topological graph.