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

Similar documents
Lecture 13: May 10, 2002

Lecture 11: May 1, 2000

Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv

Chordal Graphs: Theory and Algorithms

Dirac-type characterizations of graphs without long chordless cycles

Treewidth and graph minors

Faster parameterized algorithms for Minimum Fill-In

Graph Algorithms Using Depth First Search

Faster parameterized algorithms for Minimum Fill-In

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Algorithms For Inference Fall 2014

THE LEAFAGE OF A CHORDAL GRAPH

Enumeration of Perfect Sequences in Chordal Graphs

A taste of perfect graphs (continued)

9 About Intersection Graphs

arxiv: v5 [math.co] 5 Oct 2017

Problem Set 2 Solutions

Trees. Arash Rafiey. 20 October, 2015

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.

Clique trees of infinite locally finite chordal graphs

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

COL351: Analysis and Design of Algorithms (CSE, IITD, Semester-I ) Name: Entry number:


The 3-Steiner Root Problem

Lecture 2 - Graph Theory Fundamentals - Reachability and Exploration 1

A note on the pairwise Markov condition in directed Markov fields

The External Network Problem

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

Paths, Flowers and Vertex Cover

Graph Definitions. In a directed graph the edges have directions (ordered pairs). A weighted graph includes a weight function.

A generalization of Mader s theorem

Fixed-Parameter Algorithms, IA166

Forensic Statistics and Graphical Models (2) Richard Gill Spring Semester

These are not polished as solutions, but ought to give a correct idea of solutions that work. Note that most problems have multiple good solutions.

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

EE512A Advanced Inference in Graphical Models

An Effective Upperbound on Treewidth Using Partial Fill-in of Separators

Section 3.1: Nonseparable Graphs Cut vertex of a connected graph G: A vertex x G such that G x is not connected. Theorem 3.1, p. 57: Every connected

Bipartite Roots of Graphs

NOTE ON MINIMALLY k-connected GRAPHS

EE512 Graphical Models Fall 2009

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

WORM COLORINGS. Wayne Goddard. Dept of Mathematical Sciences, Clemson University Kirsti Wash

Small Survey on Perfect Graphs

Fundamental Properties of Graphs

Chordal graphs MPRI

arxiv:submit/ [math.co] 9 May 2011

Foundations of Computer Science Spring Mathematical Preliminaries

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

The Structure of Bull-Free Perfect Graphs

On 2-Subcolourings of Chordal Graphs

Decomposition of log-linear models

Graph Connectivity G G G

On Covering a Graph Optimally with Induced Subgraphs

Trees. 3. (Minimally Connected) G is connected and deleting any of its edges gives rise to a disconnected graph.

9 Connectivity. Contents. 9.1 Vertex Connectivity

Definition For vertices u, v V (G), the distance from u to v, denoted d(u, v), in G is the length of a shortest u, v-path. 1

Chordal deletion is fixed-parameter tractable

Lecture 4: Undirected Graphical Models

The self-minor conjecture for infinite trees

Advanced Combinatorial Optimization September 17, Lecture 3. Sketch some results regarding ear-decompositions and factor-critical graphs.

Matching Theory. Figure 1: Is this graph bipartite?

Bipartite graphs unique perfect matching.

CSE 331: Introduction to Algorithm Analysis and Design Graphs

March 20/2003 Jayakanth Srinivasan,

arxiv: v1 [cs.ds] 8 Jan 2019

CS473-Algorithms I. Lecture 13-A. Graphs. Cevdet Aykanat - Bilkent University Computer Engineering Department

Necessary edges in k-chordalizations of graphs

Probe Distance-Hereditary Graphs

Learning Bounded Treewidth Bayesian Networks

Maximal Label Search algorithms to compute perfect and minimal elimination orderings

Computing a Clique Tree with the Algorithm Maximal Label Search

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

Applied Mathematics Letters. Graph triangulations and the compatibility of unrooted phylogenetic trees

Reachability in K 3,3 -free and K 5 -free Graphs is in Unambiguous Logspace

Lecture 22 Tuesday, April 10

Fully dynamic algorithm for recognition and modular decomposition of permutation graphs

HW Graph Theory SOLUTIONS (hbovik)

HW Graph Theory SOLUTIONS (hbovik) - Q

FMA901F: Machine Learning Lecture 6: Graphical Models. Cristian Sminchisescu

CMPSCI 250: Introduction to Computation. Lecture #22: Graphs, Paths, and Trees David Mix Barrington 12 March 2014

EE512 Graphical Models Fall 2009

Math 776 Graph Theory Lecture Note 1 Basic concepts

Contracting Chordal Graphs and Bipartite Graphs to Paths and Trees

Space vs Time, Cache vs Main Memory

Depth-First Search Depth-first search (DFS) is another way to traverse the graph.

Tolerance Representations of Graphs in Trees Nancy Eaton. Tolerance Representations of Graphs in Trees Lecture I. Tree Representations of Graphs

Definition of Graphs and Trees. Representation of Trees.

On the Page Number of Upward Planar Directed Acyclic Graphs

In this lecture, we ll look at applications of duality to three problems:

6c Lecture 3 & 4: April 8 & 10, 2014

1 Connected components in undirected graphs

Recitation 4: Elimination algorithm, reconstituted graph, triangulation

Problem Set 3. MATH 776, Fall 2009, Mohr. November 30, 2009

Some relations among term rank, clique number and list chromatic number of a graph

Embedded Width, A Variation of Treewidth for Planar Graphs

Counting and Exploring Sizes of Markov Equivalence Classes of Directed Acyclic Graphs

Finding Strongly Connected Components

The strong chromatic number of a graph

CS 161 Lecture 11 BFS, Dijkstra s algorithm Jessica Su (some parts copied from CLRS) 1 Review

1 Digraphs. Definition 1

Transcription:

Undirected Graphical Models: Chordal Graphs, Decomposable Graphs, Junction Trees, and Factorizations Peter Bartlett. October 2003. These notes present some properties of chordal graphs, a set of undirected graphs that are important for undirected graphical models. Definitions We consider undirected graphs G = (V, E), where V is the vertex set and the edge set E is a set of unordered distinct pairs from V. We say that vertices u, v V are neighbors if {u, v} E. A cycle in a graph is a vertex sequence v 1,..., v n where v 1 = v n but all other pairs are distinct, and {v i, v i+1 } E. A cycle is chordless if all pairs of vertices that are not adjacent in the cycle are not neighbors (that is, any {v a, v b } with a b 1 is not in E). That is, there is no chord, or shortcut, for the cycle. A graph is chordal (also called triangulated) if it contains no chordless cycles of length greater than 3. A graph is complete if E contains all pairs of distinct elements of V. A graph G = (V, E) is decomposable if either 1. G is complete, or 2. We can express V as V = A B C where (a) A, B and C are disjoint, (b) A and C are non-empty, (c) B is complete, (d) B separates A and C in G, and (e) A B and B C are decomposable. A path is a sequence v 1,..., v n of distinct vertices for which all {v i, v i+1 } E. A tree is an undirected graph for which every pair of vertices is connected by precisely one path. A clique of a graph G is a subset of vertices that are completely connected. A maximal clique of G is a clique for which every superset of vertices of G is not a clique. A clique tree for a graph G = (V, E) is a tree T = (V T, E T ) where V T is a set of cliques of G that contains all maximal cliques of G. We ll label each edge e = (C 1, C 2 ) of a clique tree with the corresponding separator set, C 1 C 2. (But notice that these labels might not uniquely specify an edge.) A junction tree for a graph G is a clique tree for G that satisfies the following condition. For any cliques C 1 and C 2 in the tree, every clique on the path connecting C 1 and C 2 contains C 1 C 2. 1

A vertex is simplicial in a graph if its neighbors form a complete subgraph. A graph is recursively simplicial if it contains a simplicial vertex v and when v is removed the subgraph that remains is recursively simplicial. Equivalence Theorem Theorem 1. The following properties of G are equivalent. 1. G is chordal. 2. G is decomposable. 3. G is recursively simplicial. 4. G has a junction tree. We shall present the proof as a series of lemmas (1 = 2 = 3 = 4 = 1). Lemma 1. G is chordal implies G is decomposable. Proof. We prove by induction that every chordal graph with n vertices is decomposable. This is trivially true for n = 1. If it is true for any n, then the following argument shows that it is true for a graph G with n + 1 vertices. Step 1: If G is complete, it is decomposable. So suppose that G is not complete. Step 2: We can express V as the disjoint union V = A B S, where S separates A from B in G and A, B are nonempty. Indeed, since G is not complete, V contains a, b that are not neighbors. Let S V be a minimal set that separates a from b. (Notice that S might be empty). Let A be the subset of V S connected to a by some path in V S, and let B be the remainder, B = V S A. Clearly, S separates A from B in G. Step 3: S is complete. 3a: We may assume that S has cardinality at least 2, for otherwise it is trivially complete. 3b: For any two distinct nodes u, v in S, there are paths u, a 1,..., a n, v and u, b 1,..., b m, v with a i A, b i B and n, m 1. Indeed, since S was a minimal set that separates a from b, there must be a path from a to u and from a to v, since the absence of one of these paths would imply that S was not minimal. 3c: u and v are neighbors. To see this, take the path from u to v through A that has minimal length, and similarly the path from u to v through B of minimal length. This pair of paths forms a cycle, which must have a chord. To see that the chord must be between u and v, notice that the minimality of the paths implies that the chord cannot be between vertices that are both in A, nor can it be between vertices that are both in B. In addition, the fact that S separates A from B implies the chord cannot be between a vertex in A and one in B. Step 4: The subgraphs induced by A S and B S are chordal. Indeed, if one of these subgraphs contains a chordless cycle, then so does G. 2

Step 5: By the inductive hypothesis, these subgraphs are strictly smaller than G and hence decomposable. Lemma 2. G decomposable implies G is recursively simplicial. Proof. We prove by induction that every decomposable graph with n vertices is recursively simplicial. This is trivially true for n = 1. Step 1: G decomposable implies that G contains a simplicial vertex. To see this, we prove by induction the stronger statement that any decomposable graph is either complete or has two nonadjacent simplicial vertices. This is trivially true for graphs with V = 1, and for the induction step, we notice that any decomposable G is either complete, or V can be decomposed as sets A, B, C. If A B is complete, then any a A is simplicial. Otherwise, the subgraph induced by A B has two non-adjacent simplicial nodes, by the inductive hypothesis. Since B is complete, one of these must be in A. Similarly, there is a simplicial c C. Step 2: G decomposable implies that the subgraph corresponding to a subset of the vertices is decomposable. Again, we prove this by induction. It is trivially true for graphs with V = 1. For the induction step, the result is trivially true if G is complete, otherwise we consider the usual decomposition of V into A, B, C, where B is complete and A B and B C are decomposable. By the inductive hypothesis, removing a node from B leaves A B and B C decomposable. Removing a node from A leave B C unchanged, and either leaves A empty, in which case the remaining subgraph, B C, is decomposable, or leaves A B decomposable by the inductive hypothesis. Thus, the subgraph that remains when we remove a simplicial vertex v from a decomposable G is also decomposable. Lemma 3. G recursively simplicial implies G has a junction tree. Proof. We prove by induction that every recursively simplicial graph with n vertices has a junction tree. This is trivially true for n = 1. Consider a simplicial vertex v of G, and let G be the subgraph that remains when we remove v. By the inductive hypothesis, G has a junction tree T, and this can be extended to give a junction tree for G. To see this, let C be a maximal clique in T containing all neighbors of v in G. If C is precisely the set of neighbors of v, then we can add v to C to give a junction tree for G (it contains all maximal cliques, and v is not in any other clique, so the junction tree property is trivially satisfied). If not, that is, if C contains the neighbors of v as a proper subset, then we add a new clique containing v and its neighbors to T, with an edge to C. Since v is in no other clique and C {v} is a subset of C, this is a junction tree for G. Lemma 4. If G has a junction tree then G is chordal. Proof. We prove by induction that the statement is true for junction trees with n nodes. If the clique tree has only one node, then G is complete, hence chordal. 3

Assuming that the statement is true for some value of n, consider a graph with a junction tree T containing n + 1 nodes. Fix a leaf C of T, and let C be the neighbor of C in T, and let T be the tree that remains when C is removed. Step 1: If C C, then T is a junction tree for G. Step 2: On the other hand, if C C C, removing the nonempty set R = C C from V leaves a subgraph G that is chordal. To see this, notice that R has an empty intersection with every clique in T. It is easy to see that T is a junction tree for G, and so G is chordal. Step 3: It follows that G contains no chordless cycles. Indeed, if a cycle is entirely in G, it is not chordless. If the cycle is entirely in the complete subgraph defined by C, it is not chordless. If the cycle intersects R, C C, and V C, then since the subgraph defined by C C is complete, the cycle has a chord. Undirected graphical models with chordal graphs Theorem 2. The following properties of G are equivalent. 1. G is chordal. 2. There is an elimination ordering for which the graph G is a fixed point of the UndirectedGraphEliminate algorithm. 3. There is an orientation of the edges of G that gives a directed acyclic graph whose moral graph is G. 4. There is a directed graphical model with conditional independencies identical to those implied by G. We sketch the proof of these implications. Define a simplicial vertex sequence as an ordering of the nodes of a recursively simplicial graph that exhibits the recursively simpliciality of the graph. That is, as we progressively remove the nodes in this order, the next node in the order is simplicial in the remaining subgraph. Elimination ordering: Eliminating a node leaves the graph unchanged iff the node is simplicial. Thus, the existence of an elimination ordering that leaves the reconstituted graph identical is equivalent to the existence of a simplicial vertex sequence. DAG with same moral graph: Given a recursively simplicial graph G, we can construct a DAG G D as follows. Fix a simplicial vertex sequence (v 1,..., v n ) for G. Define G 1 = G. At step t, add v t and its neighbors in G t to G D (if they are not already present), and add the corresponding edges to G D so that they are directed towards v t. Then set G t+1 to the subgraph of G t that remains when v t is removed. It is clear that G D is acyclic, since the edges are directed in a fixed order. Also, by construction, the moral graph requires no additional edges. 4

To see that the existence of a DAG G D with moral graph G implies that G is recursively simplicial, fix a reverse topological order of the nodes in G D (that is, children before parents). Set G 0 = G. At step t, remove v t from G t 1 to give the subgraph G t. The ordering ensures that the neighbors of v t in G t 1 are its parents. Since the moral graph is the same, these parents must be connected in G t 1. Hence, we have specified a simplicial vertex sequence. Theorem 3. Suppose G has a junction tree T = (C, S). Fix some s = {c 1, c 2 } S, and let T 1 = (V 1, E 1 ) (T 2 = (V 2, E 2 )) be the maximal subtree with root c 1 (c 2 ) that does not contain s. Then for A 1 = V 1 (c 1 c 2 ) B = (c 1 c 2 ) A 2 = V 2 (c 1 c 2 ), we have A 1 A 2 B. Proof. Since T is a junction tree, any v in A 1 is not in A 2. Since C contains the maximal cliques, the neighbors of any v in A 1 are all in A 1 B. It follows that A 1 is separated from A 2 by B. Theorem 4. If G has a junction tree T = (C, S), then any probability distribution that satisfies the conditional independencies implied by G can be factorized as p(x) = c C p(x c) s S p(x s), where if s = {c 1, c 2 } then x s denotes x c1 c 2. Proof. Fix a root node of T and suppose that C = {c 1,..., c n } is a topological ordering of the nodes of T (that is, each node s parent appears earlier in the ordering). Then we have p(x) = i = i p(x ci x c1,..., x ci 1 ) p(x ci x cπ(i) c i ) = p(x ci ) p(x i cπ(i) c i ) = c C p(x c) s S p(x s), where the second equality follows from the previous theorem. 5

References The classic paper on the graph-theoretic equivalences presented here is C. Beeri, R. Fagin, D. Maier, and M. Yannakakis, On the desirability of acyclic database schemes, Journal of the ACM, 30(3):479 513, July 1983. See also J. Pearl, Probabilistic Reasoning in Intelligent Systems, Morgan Kaufmann, 1988. And Chapters 16 and 17 of the text, M. Jordan, An Introduction to Probabilistic Graphical Models. 6