graph-theory kernel-methods representation-learning

Definition

Weisfeiler-Leman Graph Kernel

The Weisfeiler-Leman graph kernel is a method for computing the similarity between two graphs and by leveraging the structural information discovered by the Weisfeiler-Leman algorithm. It maps each graph to a vector where the -th component represents the frequency of the -th unique colour (node label) identified during the refinement process.

Similarity Computation

Vectorisation: After iterations of the WL algorithm, each graph is represented by a concatenated vector of colour counts across all steps:

Kernel Evaluation: The similarity between two graphs is defined as the inner product of their corresponding vectors:

This kernel provides a computationally efficient way to compare graph topologies while respecting isomorphism properties up to the expressivity limit of the WL-test.