Lukas' Notes

Definition

1-dimensional Weisfeiler–Leman Algorithm

The 1-dimensional Weisfeiler–Leman algorithm (1-WL), also called colour refinement, iteratively refines a colouring of the vertices of a graph according to the colours in each vertex’s neighbourhood.

Given a colouring , define the signature

The next colouring assigns equal colours exactly to equal signatures:

Thus, each round may split existing colour classes but never merges them. For an unlabelled graph, is constant. The algorithm stops when the partition induced by the colours no longer changes.

Example

Refining a path

Let be the path . Starting from one colour class, the first round separates the endpoints by degree. The second separates the centre from the other internal vertices: