petgraph::visit

Trait NodeCount

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

A graph with a known node count.

Required Methods§

Source

fn node_count(&self) -> usize

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

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

Source§

impl<E, Ix: IndexType> NodeCount for List<E, Ix>

Source§

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

Source§

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

Source§

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

Source§

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