Trait graph::DirectedNeighbors[][src]

pub trait DirectedNeighbors<NI: Idx> {
    fn out_neighbors(&self, node: NI) -> &[NI]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn in_neighbors(&self, node: NI) -> &[NI]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
; }

Required methods

Returns a slice of all nodes which are connected in outgoing direction to the given node, i.e., the given node is the source node of the connecting edge.

Returns a slice of all nodes which are connected in incoming direction to the given node, i.e., the given node is the target node of the connecting edge.

Implementors