[−][src]Struct petgraph::visit::Reversed
An edge-reversing graph adaptor.
All edges have the opposite direction with Reversed
.
Trait Implementations
impl<G: Clone> Clone for Reversed<G>
[src]
impl<G: Copy> Copy for Reversed<G>
[src]
impl<G> Data for Reversed<G> where
G: Data,
[src]
G: Data,
type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
impl<G> DataMap for Reversed<G> where
G: DataMap,
[src]
G: DataMap,
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]
G: DataMapMut,
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: Debug> Debug for Reversed<G>
[src]
impl<G: GraphBase> GraphBase for Reversed<G>
[src]
impl<G> GraphProp for Reversed<G> where
G: GraphProp,
[src]
G: GraphProp,
impl<G: GraphRef> GraphRef for Reversed<G>
[src]
impl<G> IntoEdgeReferences for Reversed<G> where
G: IntoEdgeReferences,
[src]
G: IntoEdgeReferences,
type EdgeRef = ReversedEdgeReference<G::EdgeRef>
type EdgeReferences = ReversedEdgeReferences<G::EdgeReferences>
fn edge_references(self) -> Self::EdgeReferences
[src]
impl<G> IntoNeighbors for Reversed<G> where
G: IntoNeighborsDirected,
[src]
G: IntoNeighborsDirected,
type Neighbors = G::NeighborsDirected
fn neighbors(self, n: G::NodeId) -> G::NeighborsDirected
[src]
impl<G> IntoNeighborsDirected for Reversed<G> where
G: IntoNeighborsDirected,
[src]
G: IntoNeighborsDirected,
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]
G: IntoNodeIdentifiers,
type NodeIdentifiers = G::NodeIdentifiers
fn node_identifiers(self) -> Self::NodeIdentifiers
[src]
impl<G> IntoNodeReferences for Reversed<G> where
G: IntoNodeReferences,
[src]
G: IntoNodeReferences,
type NodeRef = G::NodeRef
type NodeReferences = G::NodeReferences
fn node_references(self) -> Self::NodeReferences
[src]
impl<G> NodeCompactIndexable for Reversed<G> where
G: NodeCompactIndexable,
[src]
G: NodeCompactIndexable,
impl<G> NodeCount for Reversed<G> where
G: NodeCount,
[src]
G: NodeCount,
fn node_count(&self) -> usize
[src]
impl<G> NodeIndexable for Reversed<G> where
G: NodeIndexable,
[src]
G: NodeIndexable,
fn node_bound(&self) -> usize
[src]
fn to_index(&self, a: Self::NodeId) -> usize
[src]
fn from_index(&self, i: usize) -> Self::NodeId
[src]
impl<G: Visitable> Visitable for Reversed<G>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,