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

Checking ancestors #207

Open
kenneth-lee-ch opened this issue Nov 14, 2024 · 1 comment
Open

Checking ancestors #207

kenneth-lee-ch opened this issue Nov 14, 2024 · 1 comment

Comments

@kenneth-lee-ch
Copy link
Contributor

In line 127 of the GraphUtils.py, how come the node is determined to be an ancestor once it is in z?

@zhi-yi-huang
Copy link
Collaborator

This method is to iteratively search for the parent node of the node in z. If the node is not in the current parent node, continue to search for its parent node. If it cannot be found until the queue is empty, then the node is not the ancestor node of the node in z.

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

No branches or pull requests

2 participants