get_anchor_pairs
- class get_anchor_pairs(anchor_links: Tensor, gid1: int, gid2: int)[source]
Bases:
Get anchor node pairs between two graphs identified by gid1 and gid2.
Parameters:
- anchor_linkstorch.Tensor
A tensor of shape (num_anchors, num_graphs) containing anchor node indices for each graph.
- gid1int
The graph ID of the first graph.
- gid2int
The graph ID of the second graph.
Returns:
- anchor_pairstorch.Tensor
A tensor of shape (num_anchor_pairs, 2) containing the anchor node pairs between the two graphs.