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

Using grapher or stats on a graph without paths raises error #19

Closed
dubssieg opened this issue Jan 5, 2024 · 1 comment
Closed

Using grapher or stats on a graph without paths raises error #19

dubssieg opened this issue Jan 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dubssieg
Copy link
Owner

dubssieg commented Jan 5, 2024

Error TypeError: 'builtin_function_or_method' object is not iterable is happening when one try to compute cyclicity of graph:

│ ❱ 84 │ stats["Is graph acyclic"] = all([len(set([x for x, _ in path_datas["path"]])) == len │
│ 85 │ │ path_datas["path"]) for path_datas in graph.paths.values]) │

Needs some default value and error handling if no paths is provided.

@dubssieg dubssieg self-assigned this Jan 5, 2024
@dubssieg dubssieg added the bug Something isn't working label Jan 5, 2024
dubssieg added a commit that referenced this issue Jan 5, 2024
🐛 Fix issue #19, #20 with changes in `main` and `grapher`
@dubssieg
Copy link
Owner Author

dubssieg commented Jan 5, 2024

This computation is now made within a try/except.

@dubssieg dubssieg closed this as completed Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant