Struct petgraph::algo::dominators::Dominators
[−]
[src]
The dominance relation for some graph and root.
Methods
impl<N> Dominators<N> where
N: Copy + Eq + Hash,
[src]
impl<N> Dominators<N> where
N: Copy + Eq + Hash,
pub fn root(&self) -> N
[src]
pub fn root(&self) -> N
Get the root node used to construct these dominance relations.
pub fn immediate_dominator(&self, node: N) -> Option<N>
[src]
pub fn immediate_dominator(&self, node: N) -> Option<N>
Get the immediate dominator of the given node.
Returns None
for any node that is not reachable from the root, and for
the root itself.
pub fn strict_dominators(&self, node: N) -> Option<DominatorsIter<N>>
[src]
pub fn strict_dominators(&self, node: N) -> Option<DominatorsIter<N>>
Iterate over the given node's that strict dominators.
If the given node is not reachable from the root, then None
is
returned.
pub fn dominators(&self, node: N) -> Option<DominatorsIter<N>>
[src]
pub fn dominators(&self, node: N) -> Option<DominatorsIter<N>>
Iterate over all of the given node's dominators (including the given node itself).
If the given node is not reachable from the root, then None
is
returned.
Trait Implementations
impl<N: Debug> Debug for Dominators<N> where
N: Copy + Eq + Hash,
[src]
impl<N: Debug> Debug for Dominators<N> where
N: Copy + Eq + Hash,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N: Clone> Clone for Dominators<N> where
N: Copy + Eq + Hash,
[src]
impl<N: Clone> Clone for Dominators<N> where
N: Copy + Eq + Hash,
fn clone(&self) -> Dominators<N>
[src]
fn clone(&self) -> Dominators<N>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<N> Send for Dominators<N> where
N: Send,
impl<N> Send for Dominators<N> where
N: Send,
impl<N> Sync for Dominators<N> where
N: Sync,
impl<N> Sync for Dominators<N> where
N: Sync,