Struct petgraph::visit::Reversed [−][src]
pub struct Reversed<G>(pub G);
Expand description
An edge-reversing graph adaptor.
All edges have the opposite direction with Reversed.
Trait Implementations
impl<G> Data for Reversed<G> where
G: Data, [src]
impl<G> Data for Reversed<G> where
G: Data, [src]type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
impl<G> DataMap for Reversed<G> where
G: DataMap, [src]
impl<G> DataMap for Reversed<G> where
G: DataMap, [src]fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>[src]
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>[src]
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut, [src]
impl<G> DataMapMut for Reversed<G> where
G: DataMapMut, [src]fn node_weight_mut(&mut self, id: Self::NodeId) -> Option<&mut Self::NodeWeight>[src]
fn edge_weight_mut(&mut self, id: Self::EdgeId) -> Option<&mut Self::EdgeWeight>[src]
impl<G> IntoEdgeReferences for Reversed<G> where
G: IntoEdgeReferences, [src]
impl<G> IntoEdgeReferences for Reversed<G> where
G: IntoEdgeReferences, [src]type EdgeRef = ReversedEdgeReference<G::EdgeRef>
type EdgeReferences = ReversedEdgeReferences<G::EdgeReferences>
fn edge_references(self) -> Self::EdgeReferences[src]
impl<G> IntoEdges for Reversed<G> where
G: IntoEdgesDirected, [src]
impl<G> IntoEdges for Reversed<G> where
G: IntoEdgesDirected, [src]type Edges = ReversedEdges<G::EdgesDirected>
fn edges(self, a: Self::NodeId) -> Self::Edges[src]
impl<G> IntoEdgesDirected for Reversed<G> where
G: IntoEdgesDirected, [src]
impl<G> IntoEdgesDirected for Reversed<G> where
G: IntoEdgesDirected, [src]type EdgesDirected = ReversedEdges<G::EdgesDirected>
fn edges_directed(self, a: Self::NodeId, dir: Direction) -> Self::Edges[src]
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected, [src]
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected, [src]type Neighbors = G::NeighborsDirected
fn neighbors(self, n: G::NodeId) -> G::NeighborsDirected[src]
fn neighbors(self, n: G::NodeId) -> G::NeighborsDirected[src]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, [src]type NeighborsDirected = G::NeighborsDirected
fn neighbors_directed(self, n: G::NodeId, d: Direction) -> G::NeighborsDirected[src]
impl<G> IntoNodeIdentifiers for Reversed<G> where
G: IntoNodeIdentifiers, [src]
impl<G> IntoNodeIdentifiers for Reversed<G> where
G: IntoNodeIdentifiers, [src]type NodeIdentifiers = G::NodeIdentifiers
fn node_identifiers(self) -> Self::NodeIdentifiers[src]
impl<G> IntoNodeReferences for Reversed<G> where
G: IntoNodeReferences, [src]
impl<G> IntoNodeReferences for Reversed<G> where
G: IntoNodeReferences, [src]type NodeRef = G::NodeRef
type NodeReferences = G::NodeReferences
fn node_references(self) -> Self::NodeReferences[src]
impl<G> NodeIndexable for Reversed<G> where
G: NodeIndexable, [src]
impl<G> NodeIndexable for Reversed<G> where
G: NodeIndexable, [src]impl<G: Copy> Copy for Reversed<G>[src]
impl<G: GraphRef> GraphRef for Reversed<G>[src]
impl<G> NodeCompactIndexable for Reversed<G> where
G: NodeCompactIndexable, [src]
G: NodeCompactIndexable,
Auto Trait Implementations
impl<G> RefUnwindSafe for Reversed<G> where
G: RefUnwindSafe,
G: RefUnwindSafe,
impl<G> Send for Reversed<G> where
G: Send,
G: Send,
impl<G> Sync for Reversed<G> where
G: Sync,
G: Sync,
impl<G> Unpin for Reversed<G> where
G: Unpin,
G: Unpin,
impl<G> UnwindSafe for Reversed<G> where
G: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more