Learn Before
Concept

The Weisfieler-Lehman(WL) Algorithm

  1. Given two graphs, we assign each node an initial label in each graph.
  2. 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.
  3. We repeat Step 2 until the labels for all nodes in both graphs converge.
  4. 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