pub trait TransitNetworkModifier<R, T: CoordNum> {
// Required methods
fn add_node(&mut self, node: TransitNode<R>) -> NodeId;
fn add_edge(&mut self, edge: TransitEdge<T>);
fn add_edge_with_accessibility(
&mut self,
edge: TransitEdge<T>,
accessibility: Accessability
);
}
Expand description
Trait providing methods for modifying a transit network.
This trait provides an abstraction for modifying a transit network, which is represented as a graph with TransitNode
instances as nodes and TransitEdge
instances as edges.
Required Methods§
sourcefn add_node(&mut self, node: TransitNode<R>) -> NodeId
fn add_node(&mut self, node: TransitNode<R>) -> NodeId
sourcefn add_edge(&mut self, edge: TransitEdge<T>)
fn add_edge(&mut self, edge: TransitEdge<T>)
sourcefn add_edge_with_accessibility(
&mut self,
edge: TransitEdge<T>,
accessibility: Accessability
)
fn add_edge_with_accessibility( &mut self, edge: TransitEdge<T>, accessibility: Accessability )
Adds a TransitEdge
to the network with a given accessibility.
Arguments
edge
- TheTransitEdge
to be added to the network.accessibility
- TheAccessability
of the edge.
Implementors§
impl<R: Copy, T: CoordNum> TransitNetworkModifier<R, T> for TransitNetwork<R, T>
Implementation of TransitNetworkModifier
trait for TransitNetwork
.
This implementation delegates the operations to the underlying physical graph.