pub trait DirectedGraphNode {
    // Required methods
    fn index(&self) -> Index;
    fn predecessors(&self) -> &IndexSet;
    fn successors(&self) -> &IndexSet;
}
Expand description

This trait is used to make graph algorithms (like dominator tree and dominator frontier generation) generic over the graph node type for unit testing purposes.

Required Methods§

source

fn index(&self) -> Index

source

fn predecessors(&self) -> &IndexSet

source

fn successors(&self) -> &IndexSet

Implementors§