pub trait GraphBase {
    type EdgeId: Copy + PartialEq<Self::EdgeId>;
    type NodeId: Copy + PartialEq<Self::NodeId>;
}
Expand description

Base graph trait: defines the associated node identifier and edge identifier types.

Required Associated Types§

source

type EdgeId: Copy + PartialEq<Self::EdgeId>

edge identifier

source

type NodeId: Copy + PartialEq<Self::NodeId>

node identifier

Implementations on Foreign Types§

source§

impl<'a, G> GraphBase for &'a mut Gwhere G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

source§

impl<'a, G> GraphBase for &'a Gwhere G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

Implementors§

source§

impl<'a, G> GraphBase for Frozen<'a, G>where G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

source§

impl<E, Ix> GraphBase for List<E, Ix>where Ix: IndexType,

§

type NodeId = Ix

§

type EdgeId = EdgeIndex<Ix>

source§

impl<G> GraphBase for Reversed<G>where G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

source§

impl<G, F> GraphBase for EdgeFiltered<G, F>where G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

source§

impl<G, F> GraphBase for NodeFiltered<G, F>where G: GraphBase,

§

type NodeId = <G as GraphBase>::NodeId

§

type EdgeId = <G as GraphBase>::EdgeId

source§

impl<N, E, Ty> GraphBase for GraphMap<N, E, Ty>where N: Copy + PartialEq<N>,

§

type NodeId = N

§

type EdgeId = (N, N)

source§

impl<N, E, Ty, Ix> GraphBase for Csr<N, E, Ty, Ix>where Ty: EdgeType, Ix: IndexType,

§

type NodeId = Ix

§

type EdgeId = usize

source§

impl<N, E, Ty, Ix> GraphBase for StableGraph<N, E, Ty, Ix>where Ix: IndexType,

§

type NodeId = NodeIndex<Ix>

§

type EdgeId = EdgeIndex<Ix>

source§

impl<N, E, Ty, Ix> GraphBase for Graph<N, E, Ty, Ix>where Ix: IndexType,

§

type NodeId = NodeIndex<Ix>

§

type EdgeId = EdgeIndex<Ix>

source§

impl<N, E, Ty, Null, Ix> GraphBase for MatrixGraph<N, E, Ty, Null, Ix>where Ty: EdgeType, Null: Nullable<Wrapped = E>, Ix: IndexType,

§

type NodeId = NodeIndex<Ix>

§

type EdgeId = (NodeIndex<Ix>, NodeIndex<Ix>)