Skip to main content

EdgeCount

Trait EdgeCount 

Source
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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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: IndexType> EdgeCount for List<E, Ix>

Source§

impl<G: Visitable + EdgeCount> EdgeCount for Acyclic<G>

Source§

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

Source§

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

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 Graph<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, S> EdgeCount for GraphMap<N, E, Ty, S>
where N: NodeTrait, Ty: EdgeType, S: BuildHasher,