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

Hash function for GNNGraph #87

Closed
bhalonen opened this issue Dec 23, 2021 · 3 comments
Closed

Hash function for GNNGraph #87

bhalonen opened this issue Dec 23, 2021 · 3 comments

Comments

@bhalonen
Copy link

Would it make sense to have a hash function for GNNGraph?

@CarloLucibello
Copy link
Member

What do you mean? You want to hash a graph?

@bhalonen
Copy link
Author

bhalonen commented Dec 23, 2021

For context I'm working on integrating your package into AlphaZero, where the state of the "game" is a key in a dictionary. We just naively used the GNNGraph in this key as a part of a named tuple as a description of our state. Obviously there was a key lookup problem so I'm working around it now.

It wouldn't be a big deal to just flatten the state to component vectors and reassemble into a GNNGraph, but just simpler to not.

@bhalonen
Copy link
Author

sbromberger/LightGraphs.jl#1256

There was a discussion of this, and decided against adding for Graphs now that i do some research.

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