Skip to content
Discussion options

You must be logged in to vote

We are actively working on sampling support for bipartite graphs/heterogeneous graphs, so please stay tuned :)

  1. For sampling the complete neighborhood, you can either use NeighborSampler with sizes=[-1] * k or use torch_geometric.utils.k_hop_subgraph.

  2. We do not have a dedicated implementation for that yet. If possible, I suggest to create one big graph (containing both G and B), and sample from their, e.g, by stacking G, and B into a single adjacency matrix, as we do here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexeypustynnikov
Comment options

Answer selected by alexeypustynnikov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants