Trait petgraph::visit::Externals [] [src]

pub trait Externals<'a>: Graphlike {
    type Externals: Iterator<Item=Self::NodeId>;
    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

type Externals: Iterator<Item=Self::NodeId>

Required Methods

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

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

Implementors