Skip to main content

IncomingEdgeCount

Trait IncomingEdgeCount 

Source
pub trait IncomingEdgeCount: TopologyBase {
    // Required method
    fn in_degree(&self, node: Self::ElementId) -> usize;
}
Expand description

Exact incoming-edge count capability.

Pairs with IncomingGraph for backends that can report in-degree without traversal; does not require incoming traversal support by itself.

Required Methods§

Source

fn in_degree(&self, node: Self::ElementId) -> usize

Returns the number of edges entering node.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§