Chordal graphs MPRI

Similar documents
Last course. Last course. Michel Habib 28 octobre 2016

A Decomposition for Chordal graphs and Applications

Chordal Graphs: Theory and Algorithms

Maximal Label Search algorithms to compute perfect and minimal elimination orderings

Small Survey on Perfect Graphs

Computing a Clique Tree with the Algorithm Maximal Label Search

Chordal deletion is fixed-parameter tractable

Graphs and Orders Cours MPRI

Bipartite Roots of Graphs

Characterization of Super Strongly Perfect Graphs in Chordal and Strongly Chordal Graphs

Graphs and Discrete Structures

arxiv: v1 [math.co] 20 Nov 2018

Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv

A NEW TEST FOR INTERVAL GRAPHS. Wen-Lian Hsu 1

Tree-Structured Graphs and Hypergraphs

arxiv: v1 [cs.ds] 14 Dec 2018

Faster parameterized algorithms for Minimum Fill-In

Minimal Dominating Sets in Graphs: Enumeration, Combinatorial Bounds and Graph Classes

A General Label Search to Investigate Classical Graph Search Algorithms

On the correspondence between tree representations of chordal and dually chordal graphs

Dirac-type characterizations of graphs without long chordless cycles

Matching Theory. Figure 1: Is this graph bipartite?

NOTE ON MINIMALLY k-connected GRAPHS

Some results on Interval probe graphs

These notes present some properties of chordal graphs, a set of undirected graphs that are important for undirected graphical models.

Treewidth and graph minors

Complexity Results on Graphs with Few Cliques

Faster parameterized algorithms for Minimum Fill-In

9 About Intersection Graphs

Lecture Notes on Graph Theory

THE LEAFAGE OF A CHORDAL GRAPH

On a perfect problem

ON VERTEX b-critical TREES. Mostafa Blidia, Noureddine Ikhlef Eschouf, and Frédéric Maffray

University of Alberta

Vertex coloring, chromatic number

RECOGNIZING CHORDAL PROBE GRAPHS AND CYCLE-BICOLORABLE GRAPHS

1 Matchings in Graphs


On some subclasses of circular-arc graphs

A General Label Search to Investigate Classical Graph Search Algorithms

A taste of perfect graphs (continued)

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Vertex coloring, chromatic number

On End Vertices of Search Algorithms. Jan Gorzny B.Math., University of Waterloo, 2011 M.Sc., University of Toronto, 2013

Minimal dominating sets in graph classes: combinatorial bounds and enumeration

Coloring edges and vertices of graphs without short or long cycles

Clique trees of infinite locally finite chordal graphs

On 2-Subcolourings of Chordal Graphs

Chordal Probe Graphs (extended abstract)

The Structure of Bull-Free Perfect Graphs

Matching Algorithms. Proof. If a bipartite graph has a perfect matching, then it is easy to see that the right hand side is a necessary condition.

arxiv: v5 [math.co] 5 Oct 2017

Maximum Cardinality Search for Computing Minimal Triangulations of Graphs 1

Eccentric Coloring of a Graph

Some new results on circle graphs. Guillermo Durán 1

COLORING EDGES AND VERTICES OF GRAPHS WITHOUT SHORT OR LONG CYCLES

Chordal deletion is fixed-parameter tractable

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

A Parallel Algorithm to Test Chordality of Graphs

Making arbitrary graphs transitively orientable: Minimal comparability completions

Vertical decomposition of a lattice using clique separators

Lecture 11: May 1, 2000

A New Approach to Graph Recognition and Applications to Distance-Hereditary Graphs

Exercise set 2 Solutions

Computing minimum distortion embeddings into a path for bipartite permutation graphs and threshold graphs

Network flows and Menger s theorem

CMSC Honors Discrete Mathematics

Decomposition of log-linear models

Enumeration of Perfect Sequences in Chordal Graphs

Unrestricted and Complete Breadth-First Search of Trapezoid Graphs in O(n) Time

Discrete Applied Mathematics

Algorithm design in Perfect Graphs N.S. Narayanaswamy IIT Madras

Abstract. A graph G is perfect if for every induced subgraph H of G, the chromatic number of H is equal to the size of the largest clique of H.

How many colors are needed to color a map?

Lecture 6: Graph Properties

Graphes: Manipulations de base et parcours

Module 11. Directed Graphs. Contents

Minimal comparability completions of arbitrary graphs

On Covering a Graph Optimally with Induced Subgraphs

Necessary edges in k-chordalizations of graphs

MATH 350 GRAPH THEORY & COMBINATORICS. Contents

arxiv: v3 [cs.ds] 26 Sep 2013

Hamiltonian Circuits in Chordal Graphs William Carter Mathematics and Computer Science MSc 2010/2011

if for every induced subgraph H of G the chromatic number of H is equal to the largest size of a clique in H. The triangulated graphs constitute a wid

arxiv: v1 [cs.ds] 8 Jan 2019

K 4 C 5. Figure 4.5: Some well known family of graphs

Parameterized coloring problems on chordal graphs

Module 7. Independent sets, coverings. and matchings. Contents

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY

Recognizing Interval Bigraphs by Forbidden Patterns

EE512 Graphical Models Fall 2009

Fundamental Properties of Graphs

Graph Classes: from Practice to Theory

3-colouring AT-free graphs in polynomial time

Probe Distance-Hereditary Graphs

An O(m + nlog n) On-Line Algorithm for Recognizing Interval Graphs

Kernelization Upper Bounds for Parameterized Graph Coloring Problems

LEX M (lexicographic labelling along paths) Lex BFS. MCS (cardinality labelling of neighbors) MCS M (cardinality labelling along paths)

Exponential time algorithms for the minimum dominating set problem on some graph classes

Transcription:

Chordal graphs MPRI 2017 2018 Michel Habib habib@irif.fr http://www.irif.fr/~habib Sophie Germain, septembre 2017

Schedule Chordal graphs Representation of chordal graphs LBFS and chordal graphs More structural insights of chordal graphs Other classical graph searches and chordal graphs Greedy colorings

Chordal graphs Definition A graph is chordal iff it has no chordless cycle of length 4 or equivalently it has no induced cycle of length 4. Chordal graphs are hereditary Interval graphs are chordal

Chordal graphs Applications Many NP-complete problems for general graphs are polynomial for chordal graphs. Graph theory : Treewidth (resp. pathwidth) are very important graph parameters that measure distance from a chordal graph (resp. interval graph). Perfect phylogeny 1 1. In fact chordal graphs were first defined in a biological modelisation perspective!

Chordal graphs G.A. Dirac, On rigid circuit graphs, Abh. Math. Sem. Univ. Hamburg, 38 (1961), pp. 71 76

Representation of chordal graphs About Representations Interval graphs are chordal graphs How can we represent chordal graphs? As an intersection of some family? This family must generalize intervals on a line

Representation of chordal graphs Fundamental objects to play with Maximal Cliques under inclusion We can have exponentially many maximal cliques : A complete graph K n in which each vertex is replaced by a pair of false twins has exactly 2 n maximal cliques. Every edge is included in at least one maximal clique

Representation of chordal graphs Minimal Separators A subset of vertices S is a minimal separator if G if there exist a, b G with ab / G, such that a and b are not connected in G S. and S is minimal for inclusion with this property.

Representation of chordal graphs An example a f b c e d 3 minimal separators {b} for f and a, {c} for a and e and {b, c} for a and d.

Representation of chordal graphs If G = (V, E) is connected then for every a, b V such that ab / E then there exists at least one minimal separator. But there could be an exponential number of minimal separators.

Representation of chordal graphs a x 1 y 1 x 2 y 2 b x 3 y 3 Figure: A graph with 2 n minimal ab-separators

Representation of chordal graphs VIN : Maximal Clique trees A maximal clique tree (clique tree for short) is a tree T that satisfies the following three conditions : Vertices of T are associated with the maximal cliques of G Edges of T correspond to minimal separators. For any vertex x G, the cliques containing x yield a subtree of T.

Representation of chordal graphs a d b e c f g h Figure: A graph and the intersection graph of its maximal cliques abc bde cfg efh

Representation of chordal graphs No tree on these 4 maximal cliques satisfies the third condition of maximal clique trees.

Representation of chordal graphs Helly Property Definition A subset family {T i } i I satisfies Helly property if J I et i, j J T i T j implies i J T i Exercise Subtrees in a tree satisfy Helly property.

Representation of chordal graphs Démonstration. Suppose not. Consider a family of subtrees that pairwise intersect. For each vertex x of the tree T, if x belongs to every subtree of the family, it contradicts the hypothesis. Therefore at least one subtree does not contain x. If the subtrees belongs to two different components of T -x this would contradict the pairwise intersection of the subtrees. Therefore all the subtrees are in exactly one component of T -x (N.B. some subtrees may contain x). Direct exactly one edge of T from x to this component. This yields a directed graph G, which has exactly n vertices and n directed edges. Since T is a tree, it contains no cycle, therefore it must exist a pair of symmetric edges in G, which contradicts the pairwise intersection.

Representation of chordal graphs Main chordal graphs characterization theorem Using results of Dirac 1961, Fulkerson, Gross 1965, Buneman 1974, Gavril 1974 and Rose, Tarjan and Lueker 1976 : For a connected graph, the following statements are equivalent and characterize chordal graphs : (0) G has no induced cycle of length > 3 (i) G admits a simplicial elimination scheme (ii) Every minimal separator is a clique (iii) G admits a maximal clique tree. (iv) G is the intersection graph of subtrees in a tree. (v) Any MNS (LexBFS, LexDFS, MCS) provides a simplicial elimination scheme.

Representation of chordal graphs Two subtrees intersect iff they have at least one vertex in common, not necessarily an edge in common. By no way, these representations can be uniquely defined!

Representation of chordal graphs An example

LBFS and chordal graphs Chordal graph 5 6 7 2 1 4 8 3 A vertex is simplicial if its neighbourhood is a clique. Simplicial elimination scheme σ = [x 1... x i... x n ] is a simplicial elimination scheme if x i is simplicial in the subgraph G i = G[{x i... x n }] a b c

LBFS and chordal graphs Lexicographic Breadth First Search (LBFS) Data: a graph G = (V, E) and a start vertex s Result: an ordering σ of V Assign the label to all vertices label(s) {n} for i n à 1 do Pick an unumbered vertex v with lexicographically largest label σ(i) v foreach unnumbered vertex w adjacent to v do label(w) label(w).{i} end end

LBFS and chordal graphs Property (LexB) For an ordering σ on V, if a < σ b < σ c and ac E and ab / E, then it must exist a vertex d such that d < σ a et db E et dc / E. d a b c Theorem For a graph G = (V, E), an ordering σ on V is a LBFS of G iff σ satisfies property (LexB).

LBFS and chordal graphs 3 5 1 2 6 7 4

LBFS and chordal graphs Theorem [Tarjan et Yannakakis, 1984] G is chordal iff every LexBFS ordering yields a simplicial elimination scheme. Proof : Let c be a non simplicial vertex. There exist a < b N(c) avec ab / E. Using characterization of LexBFS orderings, it exists d < a with db E and dc / E. Since G is chordal, necessarily ad / E. d a b c

LBFS and chordal graphs d a b c But then from the triple d, a, b, it exists d < d with d a E and d b / E. Furthermore d d / E... And using the triple d, d, a, we start an infinite chain... Remark Most of the proofs based on some characteristic ordering of the vertices are like that, with no extra reference to the algorithm itself.

LBFS and chordal graphs Main chordal graphs characterization theorem Using results of Dirac 1961, Fulkerson, Gross 1965, Buneman 1974, Gavril 1974 and Rose, Tarjan and Lueker 1976 : For a connected graph, the following statements are equivalent and characterize chordal graphs : (0) G has no induced cycle of length > 3 (i) G admits a simplicial elimination scheme (ii) Every minimal separator is a clique (iii) G admits a maximal clique tree. (iv) G is the intersection graph of subtrees in a tree. (v) Any MNS (LexBFS, LexDFS, MCS) provides a simplicial elimination scheme.

LBFS and chordal graphs Back to the proof of the main chordal characterization theorem Clearly (iii) implies (iv) For the converse, each vertex of the tree corresponds to a clique in G. But the tree has to be pruned of all its unnecessary nodes, until in each node some subtree starts or ends. Then nodes correspond to maximal cliques. We need now to relate these new conditions to chordal graphs. (iii) implies (i) since a maximal clique tree yields a simplicial elemination scheme. (iv) implies chordal since a cycle without a chord generates a cycle in the tree. (iv) implies (ii) since each edge of the tree corresponds to a minimal separator which is a clique as the intersection of two cliques.

LBFS and chordal graphs from (i) to (iv) Démonstration. By induction on the number of vertices. Let x be a simplicial vertex of G. By induction G x can be represented with a family of subtrees on a tree T. N(x) is a clique and using Helly property, the subtrees corresponding to N(x) have a vertex in common α. To represent G we just add a pending vertex β adjacent to α. x being represented by a path restricted to the vertex β, and we add to all the subtrees corresponding to vertices in N(x) the edge αβ.

LBFS and chordal graphs Exercises 1. Can we use efficiently this representation of chordal graphs as intersection of subtrees? 2. Same question for path graphs? (intersection graph of paths in a tree) 3. How to recognize a chordal graph?

LBFS and chordal graphs Which kind of representation to look for for special classes of graphs? Easy to manipulate (optimal encoding, easy algorithms for optimisation problems) Geometric in a wide meaning (ex : permutation graphs = intersection of segments between two lines) Examples : disks in the plane, circular genomes...

LBFS and chordal graphs First remark Proposition Every undirected graph can be obtained as the intersection of a subset family Proof G = (V, E) Let us denote by E x the set of edges adjacent to x. xy E iff E x E y We could also have taken the set C x of all maximal cliques which contains x. C x C y iff one maximal clique containing both x and y

LBFS and chordal graphs Starting from a graph in some application, find its characteristic : 1. 2-intervals on a line (biology), intersection of disks (or hexagons) in the plane (radio frequency), filament graphs, trapezoid graphs... 2. A whole book on this subject : J. Spinrad, Efficient Graph Representations, Fields Institute Monographs, 2003. 3. A website on graph classes : http ://www.graphclasses.org/

More structural insights of chordal graphs Clique tree clique tree of G = a minimum size tree model of G for a clique tree T of G : vertices of T correspond precisely to the maximal cliques of G for every maximal cliques C, C, each clique on the path in T from C to C contains C C for each edge CC of T, the set C C is a minimal separator (an inclusion-wise minimal set separating two vertices) Note : we label each edge CC of T with the set C C.

More structural insights of chordal graphs Consequences of maximal clique tree Theorem Every minimal separator belongs to every maximal clique tree. Lemma Every minimal separator is the intersection of at least 2 maximal cliques of G. Corollary There are at most n minimal separators.

More structural insights of chordal graphs proof Since G is chordal, every minimal separator S is a clique. Suppose S is an (x, y) minimal separator. Let us consider G 1 the connected component of G \ S containing x. If G 1 is reduced to x, then x must be universal to S, since S is a minimal separator, and S + x is a maximal clique of G. Similarly if there exists z G 1 is universal to S then S + z is contained in some maximal clique of G. Else, suppose there is no vertex in G 1 universal to S. Consider two vertices x, w G 1 having different maximal neighborhoods in G 1. Such vertices always exist unless S is not minimal. Therefore both x, w have a private neighbor t, u respectively in S.

More structural insights of chordal graphs proof II So by assumption wt, xu / E(G). Considering a shortest path µ G 1 going from x to w. Then the cycle [x, µ, w, u, t] has no chord, a contradiction. Therefore there must exist some vertex of w G 1 universal to S, and S + w contained in some maximal clique C of G. We finish the proof by considering the connected component of G \ S containing y. This yields another maximal clique C. By construction C C = S.

More structural insights of chordal graphs Proof of the theorem Démonstration. Therefore S = C C. These two maximal cliques belong to any maximal clique tree T of G. Let us consider the unique path µ in T joigning C to C. All the internal maximal cliques in µ must contain S. Suppose that all the edges of µ are labelled with minimal separators strictly containing S, then we can construct a path in G from C S to C S avoiding S, a contradiction. So at least one edge of µ is labelled with S.

Other classical graph searches and chordal graphs Maximal Cardinality Search : MCS Data: a graph G = (V, E) and a start vertex s Result: an ordering σ of V Assign the label 0 to all vertices label(s) 1 for i n à 1 do Pick an unumbered vertex v with largest label σ(i) v foreach unnumbered vertex w adjacent to v do label(w) label(w) + 1 end end

Other classical graph searches and chordal graphs Maximal Neighbourhood Search (MNS) MNS Data: a graph G = (V, E) and a start vertex s Result: an ordering σ of V Assign the label to all vertices label(s) {0} for i 1 to n do Pick an unumbered vertex v with a maximal under inclusion label σ(i) v foreach unnumbered vertex w adjacent to v do label(w) {i} label(w) end end

Other classical graph searches and chordal graphs MNS property Let σ be a total ordering V (G), if a < b < c and ac E and ab / E, then it exsits d such that d < b, db E and dc / E. a b c d < <

Other classical graph searches and chordal graphs Generic search a b c d < < MNS MNS is a kind of completion of Generic search similar to BFS versus LBFS (resp. DFS versus LDFS). This explains why MNS was first named LexGen.

Other classical graph searches and chordal graphs Theorem [Tarjan et Yannakakis, 1984] G is a chordal graph iff every MNS computes a simplicial ordering. Proof : Let c be a non simplicial vertex (to the left). Thus it exists a < b < c N(c) with ab / E. Using MNS property, it exsits d < b with db E and dc / E. Since G is chordal, necessarily ad / E. Either d < a, considering the triple d, a, b, it exists d < a such that d a E and d b / E. Furthermore d d / E. Or a < d, considering the triple a, d, c, it exists d < d such that d d E and d c / E. Furthermore ad / E. In both cases a pattern is propagating to the left, a contradiction.

Other classical graph searches and chordal graphs Corollary G is a chordal graph iff every MCS, LBFS, LDFS computes a simplicial ordering. Proof Maximal for the cardinality, or maximal lexicographically are particular cases of maximality under inclusion. Implementation MCS, LBFS provide linear time particular implementation sof MNS. But they are many others, less famous. But in its full generality no linear time implementation is known.

Other classical graph searches and chordal graphs Conclusions Using the 4-points configurations we can prove the following inclusion ordering between searches Strict inclusions Generic Search BFS MNS DFS LBFS MCS LDFS

Greedy colorings Playing with the elimination scheme Easy Exercises : 1. Find a minimum Coloring (resp. a clique of maximum size) of a chordal graph in O( V + E ). Consequences : chordal graphs are perfect. At most V 1 maximal cliques (best upper bound, since stars have exactly V 1 maximal cliques). 2. Find a minimum Coloring (resp. a clique of maximum size) of an interval graph in O( V ) using the interval representation.

Greedy colorings Greedy colorings Definitions Clique number ω(g) = maximum size of a clique in G Chromatic number χ(g) = minimum coloring of G. G, χ(g) ω(g) Greedy colorings Color with integers from [1, k] Following a vertex ordering, process successively the vertices using the greedy rule : Take the minimum color not already in the neighbourhood

Greedy colorings Chordal graphs Apply LexBFS from n downto 1 Use the ordering n downto 1 for the greedy coloring. Let k = ω(g). Since every added vertex x is simplicial and N(x) k 1, it exists at least one missing color in its neighbourhood of the already colored subgraph. The value k is reached for the last vertex belonging to each maximum clique of G.

Greedy colorings Bad ordering for greedy coloring 4 3 6 1 5 2 6, 5, 4, 3, 2, 1 LexBFS ordering

Greedy colorings Good ordering for greedy coloring 4 3 3 1 1 6 1 2 5 2 2 3 6, 5, 4, 3, 2, 1 LexBFS ordering

Greedy colorings Perfect Graphs G such that for every induced subgraphs H G ω(g) = χ(g) Consequences Therefore ω(g) = χ(g) for chordal graphs. Since being chordal graphs is an hereditary property, chordal graphs are perfect.

Greedy colorings Perfectly orderable graphs Although ω(g) and χ(g) can be computed in polynomial time for perfect graphs using the ellipsoid method, greedy coloring does not work for all perfect graphs. A graph G is said to be perfectly orderable if there exists an ordering π of the vertices of G, such that any induced subgraph is optimally colored by the greedy algorithm using the subsequence of π induced by the vertices of the subgraph. Chordal graphs are perfectly orderable.

Greedy colorings For which graphs the greedy coloring works? Bad news : NP-complete to recognize perfectly orderable graphs. Greedy coloring can be far from the optimum, even for subclasses of perfect graphs.

Greedy colorings 1 6 5 2 4 3 1 4 3 2 2 1

3 Chordal graphs MPRI 2017 2018 Greedy colorings 1 2 1 2 3 3 6 1 5 2 4

Greedy colorings The study of the relationships between ω(g) and χ(g) is fundamental for algorithmic graph theory. 1. 1930 Wagner s conjecture and treewidth 2. 1950 Shannon Problem and Perfect graphs and semi-definite programming