-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use cycle aware algorithm for propagating markers
The strongly connected components algorithm both finds all cyclic subgraphs, and a topological order of them. This seems to be a good way to replace Topo with something cycle-aware. The new algorithm uses the fact that in a strongly connected component, all vertices reach each other through some edge. That means we can combine markers of all internal edges in a component. As an optimization, only outgoing edges pointing out of the current component are updated. I didn't look outside this function, so don't know if that's a reasonable choice.
- Loading branch information
Showing
1 changed file
with
46 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters