pub trait DirectedDegrees<NI>where
    NI: Idx,{
    // Required methods
    fn out_degree(&self, node: NI) -> NI;
    fn in_degree(&self, node: NI) -> NI;
}

Required Methods§

source

fn out_degree(&self, node: NI) -> NI

Returns the number of edges where the given node is a source node.

source

fn in_degree(&self, node: NI) -> NI

Returns the number of edges where the given node is a target node.

Implementors§

source§

impl<NI, NV, EV> DirectedDegrees<NI> for DirectedALGraph<NI, NV, EV>where NI: Idx,

source§

impl<NI, NV, EV> DirectedDegrees<NI> for DirectedCsrGraph<NI, NV, EV>where NI: Idx,