-
Notifications
You must be signed in to change notification settings - Fork 48
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
IsDigraphHomomorphism is significantly slower for mutable graphs #318
Comments
Thanks @jjonusas, it seems that the issue here is with |
If we do:
but if we do:
So, the only reason I can I think of not to make |
I'm fairly sure that if the return value of |
It’s bad, but imo it’s also not really how mutable digraphs are intended to be used. The point of mutability is to make it cheaper to modify/build digraphs. But once you want to do really any kind of computation, you should make it immutable. That’s my initial gut feeling - but perhaps I’m missing something. |
The reason I've encountered this is that ChromaticNumber makes a mutable copy of the graph, which would appear to go against the intended use. |
Ah! Good to know. |
So, it looks to me that |
Sorry I didn't see this. I've not had any thoughts about this. |
Resolved in v1.4.1. |
The text was updated successfully, but these errors were encountered: