Skip to main content

OutgoingEdgeCount

Trait OutgoingEdgeCount 

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

Exact outgoing-edge count capability.

Pairs with OutgoingGraph for backends that can report out-degree without traversal; does not require outgoing traversal support by itself.

Required Methods§

Source

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

Returns the number of edges leaving node.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§