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

graph: Misleading reporting of node in cycle for CycleError #165

Open
matthiasdiener opened this issue Dec 7, 2022 · 0 comments · May be fixed by #167
Open

graph: Misleading reporting of node in cycle for CycleError #165

matthiasdiener opened this issue Dec 7, 2022 · 0 comments · May be fixed by #167

Comments

@matthiasdiener
Copy link
Contributor

matthiasdiener commented Dec 7, 2022

Initially reported by @majosm.

With this code:

graph={1: {}, 5: {1, 8}, 8: {5}}

from pytools.graph import compute_topological_order
compute_topological_order(graph)

image

compute_topological_order reports:

  File "/Users/mdiener/Work/emirge/pytools/pytools/graph.py", line 303, in compute_topological_order
    raise CycleError(next(iter(n for n, num_preds in
pytools.graph.CycleError: 1
@matthiasdiener matthiasdiener linked a pull request Dec 8, 2022 that will close this issue
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 a pull request may close this issue.

1 participant