petgraph::visit

Trait IntoEdgeReferences

Source
pub trait IntoEdgeReferences: Data + GraphRef {
    type EdgeRef: EdgeRef<NodeId = Self::NodeId, EdgeId = Self::EdgeId, Weight = Self::EdgeWeight>;
    type EdgeReferences: Iterator<Item = Self::EdgeRef>;

    // Required method
    fn edge_references(self) -> Self::EdgeReferences;
}
Expand description

Access to the sequence of the graph’s edges

Required Associated Types§

Source

type EdgeRef: EdgeRef<NodeId = Self::NodeId, EdgeId = Self::EdgeId, Weight = Self::EdgeWeight>

Source

type EdgeReferences: Iterator<Item = Self::EdgeRef>

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a, G> IntoEdgeReferences for &'a G

Implementors§

Source§

impl<'a, 'b, G> IntoEdgeReferences for &'b Frozen<'a, G>

Source§

impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F>

Source§

impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F>

Source§

impl<'a, Ix: IndexType, E> IntoEdgeReferences for &'a List<E, Ix>

Source§

impl<'a, N, E, Ty, Ix> IntoEdgeReferences for &'a Csr<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

type EdgeRef = EdgeReference<'a, E, Ty, Ix>

Source§

type EdgeReferences = EdgeReferences<'a, E, Ty, Ix>

Source§

impl<'a, N, E, Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType> IntoEdgeReferences for &'a MatrixGraph<N, E, Ty, Null, Ix>

Source§

impl<'a, N, E: 'a, Ty, S> IntoEdgeReferences for &'a GraphMap<N, E, Ty, S>
where N: NodeTrait + 'a, Ty: EdgeType, S: BuildHasher,

Source§

type EdgeRef = (N, N, &'a E)

Source§

type EdgeReferences = AllEdges<'a, N, E, Ty>

Source§

impl<'a, N: 'a, E: 'a, Ty, Ix> IntoEdgeReferences for &'a Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

impl<'a, N: 'a, E: 'a, Ty, Ix> IntoEdgeReferences for &'a StableGraph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

impl<G> IntoEdgeReferences for Reversed<G>