PlanetAlign.utils
Anchor Preprocessing and Utility Functions
Get anchor node pairs between two graphs identified by gid1 and gid2. |
|
Get anchor node pairs for all pairs of graphs. |
|
Generate one-hot anchor embeddings for nodes in a graph based on given anchor nodes. |
|
Compute Random Walk with Restart (RWR) embeddings for nodes in a graph based on given anchor nodes. |
|
Merge multiple PyG graphs into a single graph based on anchor links. |
|
Infer anchor node pairs based on degree similarity. |
|
Infer anchor node pairs based on attribute similarity. |
Noise Injection
Add structural noise to graphs in a PlanetAlign dataset by perturbing edges. |
|
Add attribute noise to graphs in a PlanetAlign dataset by perturbing node attributes. |
|
Add supervision noise to graphs in a PlanetAlign dataset by injecting noisy anchors. |
Visualization Functions
Visualize an alignment matrix as a heatmap. |
|
Visualizes an alignment matrix as a scatter plot of the top-k largest entries. |