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

Reset global state between DFS calls, minor jsdoc fix #70

Merged
merged 2 commits into from
Jul 22, 2014

Conversation

eush77
Copy link
Contributor

@eush77 eush77 commented Jul 18, 2014

DFS algorithm uses global (module-scope) variables time, visitedNodes, finishingTimes, and successive calls share their values. This patch fixes it.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) when pulling db400a2 on eush77:dfs-fixes into a2981ff on felipernb:master.

@eush77 eush77 changed the title Reset global state between DFS calls, fix complexity Reset global state between DFS calls, minor jsdoc fix Jul 19, 2014
felipernb added a commit that referenced this pull request Jul 22, 2014
Reset global state between DFS calls, minor jsdoc fix
@felipernb felipernb merged commit 58e1d63 into felipernb:master Jul 22, 2014
@eush77 eush77 deleted the dfs-fixes branch July 22, 2014 09:38
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

3 participants