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

Support self-loops #8

Open
santolucito opened this issue Jun 14, 2019 · 0 comments
Open

Support self-loops #8

santolucito opened this issue Jun 14, 2019 · 0 comments

Comments

@santolucito
Copy link

This graph will render correctly:
let g = mkGraph [0,1] [(0,1,())]
but
let g = mkGraph [0,1] [(0,0,())]
wil fail with the scale by zero! Halp! error message.

The right thing is to do is probably add support for self-loops, but a quick fix would be to add a check to mkGraph and throw and runtime error on self loops, or filter them out.

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

1 participant