infer_anchors_from_degree
- class infer_anchors_from_degree(dataset: Dataset, topk_ratio: float = 0.1)[source]
Bases:
Infer anchor node pairs based on degree similarity. The number of anchor pairs is calculated by taking the top k% of the minimum number of nodes in the two graphs.
Parameters:
- datasetDataset
The dataset containing the graphs to be aligned.
- topk_ratiofloat, optional
The ratio of the number of anchor pairs to the minimum number of nodes in the two graphs. Default is 0.1.
Returns:
- anchorstorch.Tensor
The inferred anchor pairs.