Trait graph::prelude::DirectedNeighbors
source[−]pub trait DirectedNeighbors<NI> where
NI: Idx, {
fn out_neighbors(&self, node: NI) -> &[NI]ⓘ;
fn in_neighbors(&self, node: NI) -> &[NI]ⓘ;
}
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.