Struct petgraph::visit::Reversed
[−]
[src]
pub struct Reversed<G>(pub G);
An edge-reversing graph adaptor.
All edges have the opposite direction with Reversed
.
Trait Implementations
impl<G: Copy> Copy for Reversed<G>
[src]
impl<G: Copy> Copy for Reversed<G>
impl<G: Clone> Clone for Reversed<G>
[src]
impl<G: Clone> Clone for Reversed<G>
fn clone(&self) -> Reversed<G>
[src]
fn clone(&self) -> Reversed<G>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<G: Debug> Debug for Reversed<G>
[src]
impl<G: Debug> Debug for Reversed<G>
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<G: GraphBase> GraphBase for Reversed<G>
[src]
impl<G: GraphBase> GraphBase for Reversed<G>
impl<G: GraphRef> GraphRef for Reversed<G>
[src]
impl<G: GraphRef> GraphRef for Reversed<G>
impl<G> Data for Reversed<G> where
G: Data,
[src]
impl<G> Data for Reversed<G> where
G: Data,
type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected,
[src]
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected,
type Neighbors = G::NeighborsDirected
fn neighbors(self, n: G::NodeId) -> G::NeighborsDirected
[src]
fn neighbors(self, n: G::NodeId) -> G::NeighborsDirected
Return an iterator of the neighbors of node a
.
impl<G> IntoNeighborsDirected for Reversed<G> where
G: IntoNeighborsDirected,
[src]
impl<G> IntoNeighborsDirected for Reversed<G> where
G: IntoNeighborsDirected,
type NeighborsDirected = G::NeighborsDirected
fn neighbors_directed(self, n: G::NodeId, d: Direction) -> G::NeighborsDirected
[src]
fn neighbors_directed(self, n: G::NodeId, d: Direction) -> G::NeighborsDirected
impl<G: Visitable> Visitable for Reversed<G>
[src]
impl<G: Visitable> Visitable for Reversed<G>
type Map = G::Map
The associated map type
fn visit_map(&self) -> G::Map
[src]
fn visit_map(&self) -> G::Map
Create a new visitor map
fn reset_map(&self, map: &mut Self::Map)
[src]
fn reset_map(&self, map: &mut Self::Map)
Reset the visitor map (and resize to new size of graph if needed)
impl<G> IntoEdgeReferences for Reversed<G> where
G: IntoEdgeReferences,
[src]
impl<G> IntoEdgeReferences for Reversed<G> where
G: IntoEdgeReferences,
type EdgeRef = ReversedEdgeReference<G::EdgeRef>
type EdgeReferences = ReversedEdgeReferences<G::EdgeReferences>
fn edge_references(self) -> Self::EdgeReferences
[src]
fn edge_references(self) -> Self::EdgeReferences
impl<G> NodeIndexable for Reversed<G> where
G: NodeIndexable,
[src]
impl<G> NodeIndexable for Reversed<G> where
G: NodeIndexable,
fn node_bound(&self) -> usize
[src]
fn node_bound(&self) -> usize
Return an upper bound of the node indices in the graph (suitable for the size of a bitmap). Read more
fn to_index(&self, a: Self::NodeId) -> usize
[src]
fn to_index(&self, a: Self::NodeId) -> usize
Convert a
to an integer index.
fn from_index(&self, i: usize) -> Self::NodeId
[src]
fn from_index(&self, i: usize) -> Self::NodeId
Convert i
to a node index
impl<G> NodeCompactIndexable for Reversed<G> where
G: NodeCompactIndexable,
[src]
impl<G> NodeCompactIndexable for Reversed<G> where
G: NodeCompactIndexable,
impl<G> IntoNodeIdentifiers for Reversed<G> where
G: IntoNodeIdentifiers,
[src]
impl<G> IntoNodeIdentifiers for Reversed<G> where
G: IntoNodeIdentifiers,
type NodeIdentifiers = G::NodeIdentifiers
fn node_identifiers(self) -> Self::NodeIdentifiers
[src]
fn node_identifiers(self) -> Self::NodeIdentifiers
impl<G> IntoNodeReferences for Reversed<G> where
G: IntoNodeReferences,
[src]
impl<G> IntoNodeReferences for Reversed<G> where
G: IntoNodeReferences,
type NodeRef = G::NodeRef
type NodeReferences = G::NodeReferences
fn node_references(self) -> Self::NodeReferences
[src]
fn node_references(self) -> Self::NodeReferences
impl<G> GraphProp for Reversed<G> where
G: GraphProp,
[src]
impl<G> GraphProp for Reversed<G> where
G: GraphProp,
impl<G> NodeCount for Reversed<G> where
G: NodeCount,
[src]
impl<G> NodeCount for Reversed<G> where
G: NodeCount,
fn node_count(&self) -> usize
[src]
fn node_count(&self) -> usize
impl<G> DataMap for Reversed<G> where
G: DataMap,
[src]
impl<G> DataMap for Reversed<G> where
G: DataMap,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
[src]
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut,
[src]
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut,
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>
[src]
fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>
[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>