Trait EdgeFindable

Source
pub trait EdgeFindable: Data {
    // Required method
    fn edge_find(
        &self,
        a: Self::NodeId,
        b: Self::NodeId,
    ) -> Option<Self::EdgeId>;
}
Expand description

A graph that can find edges by a pair of node ids.

Required Methods§

Source

fn edge_find(&self, a: Self::NodeId, b: Self::NodeId) -> Option<Self::EdgeId>

Implementations on Foreign Types§

Source§

impl<N, E, Ty, Ix> EdgeFindable for &StableGraph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

fn edge_find(&self, a: Self::NodeId, b: Self::NodeId) -> Option<Self::EdgeId>

Source§

impl<N, E, Ty, Ix> EdgeFindable for &Graph<N, E, Ty, Ix>
where Ty: EdgeType, Ix: IndexType,

Source§

fn edge_find(&self, a: Self::NodeId, b: Self::NodeId) -> Option<Self::EdgeId>

Implementors§