Trait daggy::petgraph::visit::Externals []

pub trait Externals<'a>: Graphlike where Self::Externals::Item == Self::NodeId {
    type Externals: Iterator;
    fn externals(&'a self, d: EdgeDirection) -> Self::Externals;
}

Externals returns an iterator of all nodes that either have either no incoming or no outgoing edges.

Associated Types

Required Methods

fn externals(&'a self, d: EdgeDirection) -> Self::Externals

Return an iterator of all nodes with no edges in the given direction

Implementors