coverage: Completely overhaul counter assignment, using node-flow graphs
This commit is contained in:
parent
e70112caf8
commit
f1300c860e
51 changed files with 1930 additions and 1973 deletions
|
@ -125,6 +125,16 @@ where
|
|||
pub fn visited(&self, node: G::Node) -> bool {
|
||||
self.visited.contains(node)
|
||||
}
|
||||
|
||||
/// Returns a reference to the set of nodes that have been visited, with
|
||||
/// the same caveats as [`Self::visited`].
|
||||
///
|
||||
/// When incorporating the visited nodes into another bitset, using bulk
|
||||
/// operations like `union` or `intersect` can be more efficient than
|
||||
/// processing each node individually.
|
||||
pub fn visited_set(&self) -> &DenseBitSet<G::Node> {
|
||||
&self.visited
|
||||
}
|
||||
}
|
||||
|
||||
impl<G> std::fmt::Debug for DepthFirstSearch<G>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue