A simple linear time algorithm for cograph recognition

  • Authors:
  • Michel Habib;Christophe Paul

  • Affiliations:
  • CNRS, Université Montpellier 2, LIRMM, 161 rue Ada, 34392 Montpellier Cedex 2, France;CNRS, Université Montpellier 2, LIRMM, 161 rue Ada, 34392 Montpellier Cedex 2, France

  • Venue:
  • Discrete Applied Mathematics - Structural decompositions, width parameters, and graph labelings (DAS 5)
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper, we describe a new simple linear time algorithm to recognize cographs. Cographs are exactly the P4-free graphs (where P4 denotes the path with 4 vertices). The recognition process works in two steps. First, we use partition refinement techniques to produce a factorizing permutation, i.e., an ordering of the vertices in which the strong modules appear consecutively. Then a very simple test algorithm is provided to check whether the given graph is a cograph, using a single sweep of the permutation obtained in the first step.