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

PXD-1262 Fix dictionary graph crashing #343

Merged
merged 9 commits into from
Aug 13, 2018

Conversation

abgeorge7
Copy link
Contributor

@abgeorge7 abgeorge7 commented Aug 13, 2018

A node can be visited more than once, as we want it to go to its lowest possible level in the tree, but we still want to detect cycles that could cause infinite loops. By mapping out the descendants of each node beforehand, we can avoid reprocessing nodes that are further up the tree than a given node and avoid cycles. This adds O(n) time up front.

@abgeorge7 abgeorge7 requested review from zflamig and frickjack August 13, 2018 16:18
Copy link
Contributor

@frickjack frickjack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! 👍

Copy link
Contributor

@zflamig zflamig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

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.

3 participants