Solving the distance k-clique problem in 1-outerplanar graphs
A clique is a subset of vertices from a simple graph such that each vertex in the set is adjacent to all other vertices in it; in other words, any pair of such vertices are connected with just one edge. Similarly, a distance -clique is a subset of vertices, from , such that any pair of vertices in the set are connected with at most -edges; in this sense, we can express a clique as a distance 1-clique set. A common formulation of these sets as a problem asks to find a Maximum Distance -Clique, MDC, from a given graph; i.e., the largest cardinality set. This problem is NP-hard in arbitrary graphs. In this work, we address the MDC problem in 1-outerplanar graphs; i.e., graphs that admit a drawing on the plane such that its edges only intersect at the vertices, and each vertex lies on the outer face of the drawing. Our approach to solving this problem was first finding an MDC set in a tree. Then, we adapted this algorithm to run in 1-outerplanar graphs. The proposed algorithm uses dynamic programming, and it goes through two phases. In the first phase, the algorithm follows a postorder traversal on a tree decomposition of to compute the size of an MDC set. Then, during a second traversal (top-bottom) it identifies the vertices that belong to the set. The running time of this algorithm is u.t., where comes from the MDC problem, while and are the treewidth and order of , respectively.