Replies: 1 comment 2 replies
-
Sorry for late response. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering whether it is possible to use
k_hop_subgraph
fromtorch_geometric.utils
when dealing with a graph with periodic boundary conditions. In particular I'm talking about a graph of a crystal structure obtained usingStructureGraph
frompymatgen
. In general, the obtained crystal graph will be a multi-graph with multiple connections between the nodes that signify bonds across periodic images of the original unit cell. For example considering a crystal graph with two nodes we may observe a connectivity likeedge_index = [[0, 1, 0, 1, 0, 1], [1, 0, 1, 0, 1, 0]]
and we have an additional attribute,to_jimages
tensor likewhich tells based on which integer translation of the original unit cell the bond/edge must be considered. I guess that running directly
k_hop_subgraph
wouldn't make sense in this context? My goal would be to efficiently obtain k-hop neighbours for each node in the original crystal graph.Beta Was this translation helpful? Give feedback.
All reactions