Learn Before
Concept
The Weisfieler-Lehman(WL) Algorithm
- Given two graphs, we assign each node an initial label in each graph.
- We iteratively assign a new label to each node in each graph by hashing the multi-set of the current labels within the node’s neighborhood, as well as the node’s current label.
- We repeat Step 2 until the labels for all nodes in both graphs converge.
- Finally, we construct multi-sets summarizing all the node labels in each graph, and we declare G1 and G2 to be isomorphic if and only if the multi-sets for both graphs are identical.
0
1
Updated 2022-07-24
Tags
Data Science