Jump to content

Colour refinement algorithm

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fschwarzentruber (talk | contribs) at 12:35, 12 September 2022. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In graph theory and theoretical computer science, the colour refinement algorithm also known as the naive vertex classification, or the 1-dimensional version of the Weisfeiler-Leman algorithm, is a routine used for testing whether two graphs are isomorphic or not[1].

History

Description

We define a sequence of vertex colourings defined as follows:

  • is the initial colouring. If the graph is unlabeled, the initial colouring assigns a trivial color to each vertex . If the graph is labeled, is the label of vertex .
  • For all vertices , we set . In other words, the new color of the vertex is the pair formed from the previous color and the multiset of the colors of its neighbors.
  1. ^ direct.mit.edu https://direct.mit.edu/books/edited-volume/5150/chapter-abstract/3403134/Color-Refinement-and-Its-Applications?redirectedFrom=fulltext. Retrieved 2022-09-12. {{cite web}}: Missing or empty |title= (help)