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

Reusable Graph Traversals #10364

Merged
merged 1 commit into from
Oct 27, 2015
Merged

Reusable Graph Traversals #10364

merged 1 commit into from
Oct 27, 2015

Conversation

nasthagiri
Copy link
Contributor

I have pulled out the graph traversals code into a separate PR from the Courses API PR.
Please review. @aleffert @ormsbee
FYI @jcdyer

@nasthagiri
Copy link
Contributor Author

pending quality issues with hanging indentation. I've tried various things to no avail.

* Topological: Parent yielded before children; child with multiple
parents yielded only after all its parents are visited.

* Post-order: Children yielded before its parents.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this module docstring is great. One small ask I have here is to give examples of when you would pick a particular ordering over another. I think it's easy for a developer to gloss over this without understanding why you would ever want to do, say, a post-order traversal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added some examples. They may not be great ones, so let me know if you were thinking of others. Please review.

@ormsbee
Copy link
Contributor

ormsbee commented Oct 27, 2015

👍

1 similar comment
@aleffert
Copy link
Contributor

👍

@nasthagiri
Copy link
Contributor Author

jenkins run python

nasthagiri added a commit that referenced this pull request Oct 27, 2015
@nasthagiri nasthagiri merged commit c032fef into master Oct 27, 2015
@nasthagiri nasthagiri deleted the mobile/graph_traversals branch October 27, 2015 18:00
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.

4 participants