pub trait EdgeCount: GraphBase {
    // Required method
    fn edge_count(&self) -> usize;
}
Expand description

A graph with a known edge count.

Required Methods§

source

fn edge_count(&self) -> usize

Return the number of edges in the graph.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a, G> EdgeCount for &'a G
where G: EdgeCount,

Implementors§

source§

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

source§

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

source§

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

source§

impl<N, E, Ty> EdgeCount for GraphMap<N, E, Ty>
where N: NodeTrait, Ty: EdgeType,

source§

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

source§

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

source§

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

source§

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