Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tarjan's Strongly Connected Components #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NickHu
Copy link

@NickHu NickHu commented Jun 29, 2020

Hi,

I know it's a bit strange to PR to your branch instead of upstream, but GitHub doesn't seem to have a nice way to make a pull request dependent on another, and I wondered if you would like to add this into your changeset (purescript#10). I believe that if you were to merge this it would get added into your open PR automatically.

`Graph`, via Tarjan's algorithm

This is essentially a translation of https://stackoverflow.com/a/15912896
The stack is encoded as a `Map k Int`, and `foldl` is used extensively
to obtain a *functional* presentation of the algorithm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant