Weisfeiler-Lehman algorithm

Weisfeiler Lehman graph isomorphism test

The idea is iteratively assigning a fingerprint for each node based on the previous fingerprints (attributes) of itself and its neighbors. This process is not guaranteed to converge especially in the case of regular and symmetric graphs, but when it converges, it can tell us about Graph isomorphism. Essentially, if the fingerprints differ between two graphs at any stage, we can conclude that the two graphs are not isomophic.

Using this idea, one can define Graph kernel called Weisfeiler Lehman graph kernels.

where denotes the attribute (fingerprint) of vertex at ‘s iteration. adjusts the importance of each subsequent iteration.

This idea is linked to many methods for Machine learning with graphs, including Graph neural network. See Morris2021Weisfeiler for a review.