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

Scale up to million of nodes #14

Closed
jthsieh opened this issue Jul 17, 2018 · 4 comments
Closed

Scale up to million of nodes #14

jthsieh opened this issue Jul 17, 2018 · 4 comments

Comments

@jthsieh
Copy link

jthsieh commented Jul 17, 2018

Hi @tkipf, thank you so much for providing the code.

I'm wondering if it's possible to scale this implementation up to millions of nodes (obviously the number of edges must scale linearly), for example a grid. I'm not familiar with PyTorch's sparse matrix implementation, so I'm not sure if representing the adjacency matrix as a sparse matrix is enough to deal with large graphs?

@tkipf
Copy link
Owner

tkipf commented Jul 17, 2018 via email

@jthsieh
Copy link
Author

jthsieh commented Jul 18, 2018

Thank you! What if I want to use it on the entire graph?

I guess I just want to confirm:
Let's say I have a graph with N nodes and O(N) edges, and adj is the adjacency matrix of type torch.sparse.FloatTensor. Does torch.spmm(adj, x) run in O(N) time?

@tkipf
Copy link
Owner

tkipf commented Jul 19, 2018 via email

@jthsieh
Copy link
Author

jthsieh commented Jul 19, 2018

Thank you!

@jthsieh jthsieh closed this as completed Jul 19, 2018
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