CMSO-Transducing Tree-Like Graph Decompositions
Abstract
We show that given a graph we can -transduce its modular decomposition, its split decomposition and its bi-join decomposition. This improves results by Courcelle [Logical Methods in Computer Science, 2006] who gave such transductions using order-invariant , a strictly more expressive logic than . Our methods more generally yield -transductions of the canonical decomposition of weakly-partitive set systems and weakly-bipartitive systems of bipartitions.
Keywords and phrases:
MSO-transduction, MSO-definability, graph decomposisionsFunding:
Rutger Campbell: Supported by the Institute for Basic Science (IBS-R029-C1).Copyright and License:
![[Uncaptioned image]](x1.png)
Noleen Köhler; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Finite Model TheoryEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
A decomposition of a graph, especially a tree-like decomposition, is a result of recursive separations of a graph and is extremely useful for investigating combinatorial properties such as colourability, and for algorithm design. Such a decomposition also plays a fundamental role when one wants to understand the relationship between logic and a graph class. Different notions of the complexity of a separation motivate different ways to decompose, such as tree-decomposition, branch-decomposition, rank-decomposition and carving-decomposition. Furthermore, some important graph classes can be defined through the tree-like decomposition they admit; cographs with cotrees and distance-hereditary graphs with split decompositions being prominent examples.
For a logic , an -transduction is a non-deterministic map from a class of relational structures to a new class of relational structures using -formulas. Transducing a tree-like decomposition is of particular interest. Notably, transducing a decomposition of a graph implies that any property that is definable using a decomposition, is also definable on graphs that admit such a decomposition. Moreover, tree-like decompositions can be often represented by labelled trees, for which the equivalence of recognisability by a tree automaton and definability in CMSO is well known [8]. Hence, it is an interesting question to consider what kind of graph decompositions can be transduced using -transductions for some extension of .
In a series of papers [8, 9, 10, 12], Courcelle investigated the relationship between the graph properties that can be defined in an extension of and the graph properties that can be recognized by a tree automaton. In particular, for graphs of bounded treewidth, Courcelle’s theorem states that any property that is definable in the logic with modulo counting predicate, denoted , can be recognized by a tree automaton [8]. Combining this result with the linear time algorithm for computing tree-decompositions [1], yields that model-checking can be done in linear time on graphs of bounded treewidth. The converse statement – whether recognisability by a tree automaton implies definability in on graphs of bounded treewidth – was conjectured by Courcelle in [8] and finally settled by Bojańczyk and Pilipczuk [4]. The key step to obtain this result is obtaining a tree-decomposition of a graph via an -transduction, a strategy which was initially proposed in [9] and is now standard.
The obvious next question is whether an analogous result can be proved for graphs of bounded clique-width and for more general combinatorial objects, most notably, matroids representable over a fixed finite field and of bounded branch-width. Due to the above-mentioned strategy, the key challenge is to produce corresponding tree-like decompositions by -transduction. It is known that clique-width decompositions can be -transduced for graphs of bounded linear clique-width [3]. However, it is unknown if clique-width decompositions can be -transduced in general. In fact, this question remains open even for distance-hereditary graphs, which are precisely graphs of rank-width 1 (thus, of constant clique-width).
Besides tree-decompositions, the problem of transducing cotrees, and in general hierarchical decompositions such as modular decompositions and split decompositions were considered in the literature [10, 11, 12, 14]. In [10], Courcelle provides transductions using order-invariant for cographs and modular decompositions of graphs of bounded modular width. Order-invariant allows the use of a linear order of the set of vertices and is more expressive than [20]. The applicability of these transductions was later generalized using the framework of weakly-partitive set systems111Weakly-partitive set systems are set systems enjoying some nice closure properties, which were then used to show that some set systems allow canonical tree representations, see for instance the thesis by Montgolfier and Rao [17, 24]. to obtain order-invariant -transductions of modular and split decompositions [12]. It was left as an open question whether one can get rid of the order (see for instance [13] where an overview of the result on hierarchical decompositions was given).
1.1 Our results
In this paper, we consider decompositions given by separations that do not overlap with any other separations of the same type. We view separations of a given kind as a “set system”. A set system consists of a set , the universe, and a set of subsets of . Two sets overlap if they have non-empty intersection but neither of them is contained in the other. If no two elements in a set system overlap, i.e. the set system is laminar, then the subset relation in can be described by a rooted tree , called the laminar tree of . For any set system we can look at the subset of strong sets, i.e., sets that do not overlap with any other set, and the laminar tree they induce. Additionally, we consider systems of bipartitions of a universe . Two bipartitions of overlap if neither side of one of the bipartition is contained in either side of the other bipartition. In case has no overlapping bipartitions, then can be described by an undirected tree, also called laminar tree, in which bipartitions correspond to edge cuts. We can define the concept of strong bipartitions equivalently and consider the laminar tree induced by the strong bipartitions in .
Given a graph we can consider the set system where is the set of all modules in , or the system of bipartition where contains all splits in , or the system of bipartitions where contains all bi-joins in . We obtain the modular decomposition/cotree/split decomposition/bi-join decomposition by equipping the laminar tree of the suitable set system/system of bipartitions with some additional structure. The additional structure allows us to recover the graph from the respective decomposition.
Abstractly, the set systems/systems of bipartitions mentioned are instances of weakly-partitive set systems/weakly-bipartitive systems of bipartitions. Roughly speaking, if a set system is well behaved, i.e. is weakly-partitive (definition in Section 2), then there is a labelling of and a partial order of its nodes such that is completely described by [7, 24]. A similar statement holds for systems of bipartitions [17].
We show the following, wherein each item is a suitable labelling of the nodes of the laminar tree , is a partial ordering of its nodes, and is an additional edge relation defined only on pairs of siblings in . A visualization how results depend on each other is given in Figure 1. Due to space constraints, some proofs are omitted, but they are available in the extended preprint [6].
Theorem 1.
There are non-deterministic -transductions such that:
-
1.
For any laminar set system , is non-empty and every output in is a laminar tree of (Theorem 2);
-
2.
For any graph , is non-empty and every output in is a modular decomposition of (Theorem 18);
-
3.
For any cograph , is non-empty and every output in is a cotree of (Corollary 20);
-
4.
For any graph , is non-empty and every output in is a split decomposition of [6, Theorem 29];
-
5.
For any graph , is non-empty and every output in is a bi-join decomposition of [6, Theorems 32 & 37];
-
6.
For any weakly-partitive set system , is non-empty and every output in is a weakly-partitive tree of (Theorem 15);
-
7.
For any weakly-bipartitive set system , is non-empty and every output in is a weakly-bipartitive tree of [6, Theorem 24].
The key step in obtaining these transductions is to transduce the laminar tree of a set system , namely Theorem 2. The crux here is to find a suitable representative of each node of amongst the elements of and a non-deterministic coloring which allows the assignment of representatives to nodes by means of a -formula. It should be mentioned that a similar result is claimed in the preprint [2], where a proof sketch designing a -transduction is described. Once the laminar tree is obtained, the additional relations for each decomposition can be obtained using a deterministic -transduction. Notice that for each of these transductions, there exists an inverse deterministic -transduction, namely a transduction that from the tree-like decomposition outputs the original structure.
1.2 Organization
The paper is organized as follows. In Section 2 we introduce terminology and notation needed. In Section 3 we prove Theorem 2. In Section 4 we provide the proof of Theorems 15 and 18 and obtain Corollary 20.
2 Preliminaries
2.1 Graphs, trees, set systems
Graphs.
We use standard terminology of graph theory, and we fix some notations. Given a directed graph , its sets of vertices and edges are denoted by and , respectively. We denote by uv an edge . An undirected graph is no more than a directed graph for which is symmetric (i.e., ). The notions of paths, connected components, etc… are defined as usual. Given a subset of , we denote by the sub-graph of induced by .
Trees.
A tree is a connected undirected graph without cycles. In the context of trees, we use a slightly different terminology than for graphs. In particular, vertices are called nodes, nodes of degree at most are called leaves, and nodes of degree greater than are called inner. The set of leaves is denoted ; thus the set of inner nodes is . For a node of a tree and a neighbor of , we denote by the connected component of containing . We sometimes consider rooted trees, namely trees with a distinguished node, called the root. Rooted trees enjoy a natural orientation of their edges toward the root, which induces the usual notions of parent, child, sibling, ancestor and descendant. Hence, we represent a rooted tree by a set of nodes with an ancestor/descendant relationship (instead of specifying the root). We use the convention that every node is one of its own ancestors and descendants. We refer to ancestors (resp. descendants) of a node that are not the node itself as proper ancestors (resp. proper descendants). For a node of a rooted tree , we denote by the subtree of rooted in (i.e., the restriction of to the set of descendants of ).
Set systems and laminar trees.
A set system is a pair where is a finite set, called the universe, and is a family of subsets of where , , and for every .222Though these restrictions on are not usual for set systems, it is convenient for our contribution and it does not significantly impact the generality of set systems: every family of subsets of can be associated with a set system where . Two sets and overlap if they are neither disjoint nor related by containment. A set system is said to be laminar (aka overlap-free) when no two sets from overlap. By extension, a set family is laminar if is a laminar set system (note this also requires that , , and for every ).
A laminar family of subsets of naturally defines a rooted tree where the nodes are the sets from , the root is , and the ancestor relation corresponds to set inclusion. We call this rooted tree the laminar tree of induced by (or laminar tree of ). In this rooted tree, the leaves are the singletons for , which we identify with the elements themselves. That is to say, . Laminar trees have the property that each inner node has at least two children. Observe also that the size of a laminar tree is linearly bounded in the size of the universe.
2.2 Logic and transductions
We use relational structures to model both graphs and the various tree-like decompositions used in this paper. In order to concisely model set systems we use the more general notion of extended relational structures, namely relational structure extended with set predicate names. Such structures also naturally arise as outputs of -transductions defined below.
Define an (extended) vocabulary to be a set of symbols, each being either a relation name with associated arity , or a set predicate name with associated arity . Set predicate names are aimed to describe relations between sets, e.g., one may have a unary set predicate for selecting finite sets of even size, or a binary set predicate for selecting pairs of disjoint sets. We use capital or names starting with a lowercase letter (e.g., , , ) for relation names, and capital or uppercase names (e.g., , ) for set predicate names. To refer to an arbitrary symbol of undetermined kind, we use capital . A relational vocabulary is an extended vocabulary in which every symbol is a relation name.
Let be a vocabulary. An extended relational structure over (-structure) is a structure consisting on the one hand of a set called universe, and on the other hand, for each symbol in , an interpretation of , which is a relation of arity either over the universe if is a relation name, or over the family of subsets of the universe if is a set predicate name. When is not extended, is simply a relational structure.
Given a -structure and, for some vocabulary , a -structure , we write if , and for each symbol in , .333We require equality here (in particular only elements or subsets of are related in ). This differs from classical notions of inclusions of relational structures which typically require equality only on the restriction of the universe to , i.e., , e.g., in order to correspond to induced graphs. We write to denote the -structure consisting of the universe and, for each symbol , the interpretation which is , , or according to whether belongs to , to , or to .444We do not require and to be disjoint structures whence we may have .
To describe properties of (extended) relational structures, we use monadic second order logic () and refer for instance to [15, 19, 22, 25] for the definition of on extended relational structures such as matroids or set systems in general. This logic allows quantification both over single elements of the universe and over subsets of the universe. We also use counting (), which is the extension of with, for every positive integer , a unary set predicate that checks whether the size of a subset is divisible by or not. We only use . As usual, lowercase variables indicates first-order-quantified variables, while uppercase variables indicates monadic-quantified variables. For a formula , we write, e.g., to indicate that the variables , , and belong to the set of free variables of , namely, the set of variables occurring in that are not bound to a quantifier within . A sentence is a formula without free variables.
We now fix some (extended) vocabularies that we will use.
- Graphs.
-
To model both graphs, unrooted trees, and directed graphs, we use the relational vocabulary where is a relation name of arity . A (directed) graph is modeled as the -structure with universe and interpretation . In particular if is undirected, then is symmetric.
- Rooted trees.
-
We use the relational vocabulary to model rooted trees where is a relation name of arity . A rooted tree is modeled as the -structure with universe and the interpretation being the set of pairs such that is an ancestor of in . It is routine to define -formulas over this vocabulary to express the binary relations parent, child, proper ancestor, (proper) descendant, as well as the unary relations leaf and root.
- Set systems.
-
To model set systems, we use the extended vocabulary where is a set predicate name of arity . A set system is thus naturally modeled as the -structure with universe and interpretation .
Transductions
Let and be two extended vocabularies. A -to- transduction is a set of pairs formed by a -structure, call the input, and a -structure, called the output. We write when . When for every pair we have , we call an overlay transduction. Some transductions can be defined by means of - or -formulas. This leads to the notion of - and -transductions. Following the presentation of [3], for denoting or , define an -transduction to be a transduction obtained by composing a finite number of atomic -transductions of the following kinds.
- Filtering.
-
An overlay transduction specified by an -sentence over the input vocabulary , which discards the inputs that do not satisfy and keeps the other unchanged. Hence, it defines a partial function (actually, a partial identity) from -structures to -structures.
- Universe restriction.
-
A transduction specified by a -formula over the input vocabulary , with one free first-order variable, which restricts the universe to those elements that satisfy . The output vocabulary is and the interpretation of every relation (resp. every predicate) in the output structure is defined as the restriction of its interpretation in the input structure to those tuples of elements satisfying (resp. tuples of sets of elements that satisfy ). This defines a total function from -structures to -structures.
- Interpretation.
-
A transduction specified by a family over the input vocabulary where is the output vocabulary and each has free variables which are first-order if is a relation name and monadic if it is a set predicate name. The transduction outputs the -structure that has the same universe as the input structure and in which each relation or predicate is interpreted as those set of tuples that satisfy . This defines a total function from -structures to -structures.
- Copying.
-
An overlay transduction parametrized by a positive integer that adds copies of each element to the universe. The output vocabulary consists in the input vocabulary extended with binary relational symbols interpreted as pairs of elements saying that “ is the -th copy of ”. The interpretation of the relations (resp. predicates) of the input structure are preserved, on original elements. This defines a total function from -structures to -structures, where .
- Colouring.
-
An overlay transduction that adds a new unary relation to the structure. Any possible interpretation yields an output; indeed the interpretation is chosen non-deterministically. The interpretation of the relations (resp. predicates) of the input structure are preserved. Hence, it defines a total (non-functional) relation from -structures to -structures where (providing ).
We say an -transduction is deterministic if it does not use colouring, it is non-deterministic otherwise. By definition, deterministic -transductions define functions.
3 Transducing the laminar-tree
In this section, we present an overlay -transduction that takes as input a laminar set system and outputs the laminar tree it induces.
Theorem 2.
Let be an extended vocabulary, including a unary set predicate name and not including the binary relational symbol . There exists a non-deterministic -transduction such that, for each laminar set system represented as the -structure and inducing the laminar tree with , and for each -structure with , is non-empty and every output in is equal to some -structure representing .
Since the sets from are precisely the sets of leaves of the subtrees of , there is an -transduction which is the inverse of the above -transduction; that is to say, given an -structure representing the laminar tree, it outputs the original set system . Namely,
-
1.
An interpretation that is true for a set when there exists an element such that an element is in if and only if is an ancestor of .
-
2.
The filtering keeping leaves only.
We prove Theorem 2 in Section 3.2, using the key tools developed in Section 3.1, that allow us to represent each inner node of with a pair of leaves from its subtree, while keeping the number of inner nodes represented by a given leaf bounded.
3.1 Inner node representatives
In this section, the root of any rooted tree is always an inner node (unless the tree is a unique node). We fix a rooted tree , in which every inner node has at least two children (a necessary assumption that is satisfied by laminar trees), and we let denote the set of its nodes () and denote the subset of its leaves ().
Let , and let be a pair of injective mappings from to . We say that the pair identifies if for each , is the least common ancestor of and . For and , we say that is -requested in if lies on the path from to (namely, on either of the paths from to and from to ). We say that is requested in if it is -requested for some . The pair has unique request if every node of is requested at most once in , i.e., there exists at most one such that is -requested in . Note that if has unique request then the paths from to are pairwise disjoint for all the . We now state a few basic observations.
Remark 3.
Let identifying some subset of .
-
1.
The reversed pair also identifies and has unique request whenever does.
-
2.
If , then identifies , and has unique request if does.
-
3.
For each , is -requested in .
-
4.
If has unique request, then and are disjoint subsets of .
Lemma 4.
Let identifying some subset of with unique request. Then for each the node is the least ancestor of which belongs to .
Proof.
Let and let . By definition, is an ancestor of which belongs to . Let be the least ancestor of that is contained in . As is an ancestor of belonging to , must be a descendant of . Hence, is -requested in . Additionally, by Item 3 of Remark 3, is -requested in . Since has unique request, . Thus, is the least ancestor of which belongs to .
Notice that, by Item 1 of Remark 3, a similar result holds for each . It follows that the sets and characterize .
Lemma 5.
Let , and and be two pairs of injections from to identifying with unique request. If and then and .
Proof.
Let , , and . Both and are the least ancestor of which belongs to , hence and . Thus . By Item 1 of Remark 3, we also obtain that .
Let and be two disjoint subsets of . We call such a pair a bi-colouring. We say that identifies if there exists a pair identifying with unique request such that and . By the previous lemma, for a fixed set the pair identifying is unique when it exists. We will also prove that is actually uniquely determined from . Before that, we state the following technical lemma.
Lemma 6.
Let identify some subset of through a pair of injections having unique request. Then, for each inner node , exactly one of the three following cases holds:
-
1.
, is not requested in , and for each child of , ;
-
2.
, is requested in , and there exists one leaf such that, for each child of , ;
-
3.
, is requested in , and there exists two leaves and such that, for each child of , and .
Proof.
Let be an inner node. We consider the set of all nodes which are not proper descendants of and the restrictions and of, respectively, and to . By Item 2 of Remark 3 identify with unique request. We denote and , thus identify . Let and be the sets of representatives contained in of nodes in . Let be an element of . The element is an ancestor of because it is an ancestor of and belongs to whence not to . Therefore, is -requested. As has unique request, there exists at most one element in . Similarly, has size at most . Moreover, by Item 4 of Remark 3. We thus we have three cases:
- Case .
-
Then there is no such that or . Hence, is not requested in , in particular, .
Let be a child of . If , then there exists such that, assuming without loss of generality that and denoting , . Hence, is a proper ancestor of , thus, equivalently, an ancestor of , implying that is -requested in . This contradicts the above argument. So, for each child of .
- Case .
-
Assume, without loss of generality, that , and denote and . We have that is a proper ancestor of , since it is the least common ancestor of and . Thus, is -requested and so .
Let be a child of . If , then it means that there exists , such that either and , or and . In both cases, is a proper ancestor of , whence an ancestor of . Thus, is -requested in . However, is -requested in which has unique request, hence . If , it follows that , which contradicts the fact . Hence, and thus, . Therefore, for each child of .
- Case and .
-
Let and . The node is -requested and -requested in , so, by the unique request property, . Since is the least common ancestor of and , it belongs to whence implying .
Let be a child of . If , then there exists such that either and , or and . In both cases, is a proper ancestor of , whence an ancestor of , and thus is -requested in . However, is -requested in which has unique request, hence and thus . Therefore, for each child of . Because the least common ancestor of and is , there is no child of containing both and as leaves, i.e., .
This concludes the proof of the statement.
It follows that for each bi-colouring , there exists at most one set of inner nodes identified by .
Lemma 7.
Let be two disjoint subsets of and let and be two subsets of . If identify both and , then .
Proof.
We proceed by contradiction and thus assume . Let . By Lemma 6, the number of children of for which the set has odd size is since , while it should also be less than since . A contradiction.
When identifies a set , we call -representative (resp. -representative) of the leaf (resp. ), where witnessing that identifies . An example of bi-colouring identifying a subset of inner nodes is given in Figure 2.
Not every set of inner nodes has a bi-colouring identifying it. To ensure that such a pair exists, we consider thin sets of inner nodes. While thin sets always have bi-colourings identifying them, it is also guaranteed that the set of inner nodes can be partitioned into only 4 thin sets. A subset is thin when, for each not being the root, on the one hand, the parent of does not belong to , and on the other hand, admits at least one sibling (including possible leaves) that does not belong to . Having a thin set allows to find branches avoiding it.
Lemma 8.
Let and . If is thin, then there exists a leaf such that the path from to avoids (i.e., none of the nodes along this path belong to ).
Proof.
If has height , then is a leaf and taking trivially gives the expected path. Otherwise, is an inner node and, because is thin, has at least one child not belonging to . By induction, there is a path from some leaf to avoiding and, since , this path could be extended into a path from to avoiding .
The previous lemma allows to identify every thin set.
Lemma 9.
If is a thin set, then there exists a pair of injections from to that has unique request and that identifies .
Proof.
We proceed by induction on the size of . If , the result is trivial. Let and suppose that for every thin set of size there exists a pair of injections identifying it with unique request. Let be a thin set of size , and let be of minimal depth. Clearly, is thin and thus there exists, by induction, a pair of injections from to identifying with unique request. Since is thin and , we can find two distinct children and of not belonging to .555Remember that every inner node of has at least two children (including possible leaves). Then, by Lemma 8, there exists a leaf (resp. a leaf ) such that the path from to (resp. from to ) avoids . In particular, for each node along these paths, since has no ancestor that belongs to but , is not requested in . Hence, extending (resp. ) in such a way that, besides mapping each to (resp. to ), it maps to (resp. to ), we obtain a pair of injections from to that identifies with unique request.
A family of bi-colourings identifies a set , if there exists a partition of such that, for each , identifies . Whenever we say that identifies . A collection of subsets of is thin if each of its subsets is thin. We now show that there exists a thin -partition.
Lemma 10.
There exists a thin -partition of .
Proof.
We build such a thin -partition as follows. First, consider the partition of in which (resp. ) is the set of all inner nodes of even (resp. odd) depth. Second, arbitrarily fix one child of for each inner node , and consider the set , inducing a partition of where . By refining these two bi-partitions, we obtain a -partition which is thin by construction.5
Hence, four bi-colourings are enough to identify . For an example see Figure 3.
Corollary 11.
There exists a family of four bi-colourings identifying .
Proof.
3.2 The transduction
The goal of this section is to prove Theorem 2, that is, to design a -transduction that produces the laminar tree induced by an input laminar set system. We fix a laminar set system , represented by a -structure . Before proving the theorem, we make the following basic observation. On , we can define two -formulas and expressing that in the laminar tree induced by , and are nodes and is a descendant or a child of , respectively:
The key point of our construction consists in defining a -formula which, assuming a bi-colouring of the universe modeled as disjoint unary relations and identifying a subset of inner nodes of , is satisfied exactly when and is its -representative.
Lemma 12.
Let be a bi-colouring of identifying a subset of inner nodes of . There exists a -formula that is satisfied exactly when is an inner node of that belongs to and is -represented by .
Proof.
First, we define a formula that, under the above assumption, is satisfied exactly when belongs to . According to Lemma 6, this happens if and only if is a node of (i.e., is satisfied) and there exists and such that for each child of , and the set has even size. This property is easily expressed in , using the -formula defined previously, as well as the predicate :
We are now ready to prove the theorem.
Proof of Theorem 2.
The -transduction is obtained by composing the following atomic -transductions. The transduction makes use of the formulas given by Lemma 12.
-
1.
Guess a family of four bi-colourings identifying (which exists by Corollary 11).
-
2.
Copy the input graph four times, thus introducing four binary relations where indicates that is the -th copy of the original element .
-
3.
Filter the universe keeping only the original elements as well as the -th copy of each vertex for which there exists such that .
-
4.
Define the relation so that it is satisfied exactly when there exist , , , and such that, on the one hand and , and, on the other hand, either is an original element and , or there exists and such that .
4 Transducing modular decompositions
The set of modules of a directed graph is a specific example of a particular type of set system, a “weakly-partitive set system” (and a “partitive set system” in the case of an undirected graph). In this section, we first give a general -transduction to obtain the canonical tree-like decomposition of a weakly-partitive set system from the set system itself. We then show how to obtain the modular decomposition of a graph via a -transduction as an application.
4.1 Transducing weakly-partitive trees
A set system is weakly-partitive if for every two overlapping sets , the sets , , , and belong to . It is partitive if, moreover, for every two overlapping sets , their symmetric difference, denoted , also belongs to . By extension, a set family is called weakly-partitive or partitive whenever is a set system which is weakly-partitive or partitive, respectively (note these also requires that , , and for every ).
A member of a set system is said to be strong if it does not overlap any other set from . The sub-family of strong sets of is thus laminar by definition. Hence, it induces a laminar tree . By extension, we say that is induced by the set system (or simply by ). The next result extends Theorem 2, by showing that can be -transduced from .
Lemma 13.
Let be an extended vocabulary, including a set unary predicate name and not including the binary relational symbol . There exists a non-deterministic -transduction such that, for each set system represented as the -structure and inducing the laminar tree with , and for each -structure with , is non-empty and every output in is equal to some -structure representing .
Proof.
On the -structure , it is routine to define an -formula that identifies those subsets that are strong members of :
Hence, we can design an -interpretation that outputs the -structure corresponding to equipped with the set unary predicate that selects strong members of . Thus, up to renaming the predicates and , by Theorem 2, we can produce, through a -transduction, the -structure where is the tree-structure modeling the laminar tree induced by with (once the output obtained, the interpretation drops the set predicate which is no longer needed).
Clearly, the laminar tree of a weakly-partitive set system does not characterize . However, as shown by the below theorem, a labeling of its inner nodes and a controlled partial ordering of its nodes are sufficient to characterize all the sets of . For a set equipped with a partial order and a subset of , we say that is a -interval whenever defines a total order on and for every and every , implies .
Theorem 14 ([7, 24]).
Let be a weakly-partitive family, be its subfamily of strong sets, and be the laminar tree it induces. There exists a total labeling function from the set of inner nodes of to the set , and, for each inner node , a linear ordering of its children, such that every inner node having exactly two children is labeled by and the following two conditions are satisfied:
-
for each , there exists and a subset of children of such that and either and is a -interval, or ;
-
conversely, for each inner node and each non-empty subset of children of , if either and is a -interval, or , then .
Furthermore, and are uniquely determined from , and, for each inner node of labeled by , only two orders are possible, one being the inverse of the other (indeed, inverting an order does preserve the property of being a -interval). Hence, every weakly-partitive family is characterized by a labeled and partially-ordered tree where is the laminar tree induced by the subfamily of strong sets of , is the labeling function, and is the partial order over . As, up-to inverting some of the orders, is unique, we abusively call it the weakly-partitive tree induced by . Conversely, a weakly-partitive tree characterizes the unique weakly-partitive set system which induced it.
We naturally model a weakly-partitive tree of a partitive set system by the -structure of universe such that models with , is a unary relation which selects the inner nodes of of label , i.e., , and is a ternary relation selecting triples satisfying or . (Although it is possible, through a non-deterministic -transduction, to define from , the use of rather than ensures unicity of the output weakly-partitive tree.) The inner nodes of that are labeled by can be recovered through an -formula as those inner nodes whose children are related by . The inner nodes labeled by can be recovered through an -formula as those inner nodes that are labeled neither by nor by . Using Theorem 14, it is routine to design an -transduction which takes as input a weakly-partitive tree and outputs the weakly-partitive set system which induced it. The inverse -transduction is the purpose of the next result. The proof is omitted due to space constraints.
Theorem 15.
There exists a non-deterministic -transduction such that, for every weakly-partitive set system represented as the -structure and inducing the weakly-partitive tree represented as the -structure , we have and every output in is a weakly-partitive tree of .
If is partitive then the weakly-partitive tree it induces enjoys a simple form, and is truly unique. Indeed, the label and, thus, the partial order , are not needed.
Theorem 16 ([7]).
Let be a weakly-partitive family and be the weakly-partitive tree it induces. If is partitive, then and is empty.
Hence, in case of a partitive set systems , we can consider the simpler object , called the partitive tree induced by (or the partitive tree of ) in which maps to . As a direct consequence of Theorems 16 and 15, we can produce, through a -transduction, the partitive tree induced by a partitive set system and naturally modeled by an -structure.
Corollary 17.
There exists a non-deterministic -transduction such that, for each partitive set system represented as the -structure and inducing the partitive tree represented as the -structure , we have and every output in is a partitive tree of .
4.2 Application to modular decomposition
Let be a directed graph and let . We say that is a module (of ) if for every and every , and . Clearly, the empty set, , and all the singletons for are modules; they are called the trivial modules of . We say a non-empty module is maximal if it is not properly contained in any non-trivial module. Let and be two disjoint non-empty modules of . Considering the edges that go from to , namely edges from the set , we have two possibilities: either it is empty, or it is equal to . We write in the former case and in the latter. (It is of course possible to have both and .) A modular partition of is a partition of such that every is a non-empty module. A modular partition is called maximal if it is non-trivial and every is strong and maximal. Note that every graph has exactly one maximal modular partition.
A modular decomposition of is a rooted tree in which the leaves are the vertices of , and for each inner node , has at least two children and the set is a module of . In a modular decomposition of , for each inner node with children , the family is a modular partition of . When each such partition is maximal, the decomposition is unique and it is called the maximal modular decomposition of . The maximal modular decomposition of alone is not sufficient to characterize . However, enriching with, for each inner node with children , the information of which pair of modules is such that , yields a unique canonical representation of . Formally, the enriched modular decomposition of is the pair where is the maximal modular decomposition of (with ) and is a binary relation, that relates a pair of nodes of , denoted , exactly when and are siblings and . The elements of are called -edges.
It should be mentioned that the family of all non-empty modules of is known to be weakly-partitive (or even partitive when is undirected). In particular, the maximal modular decomposition of is the laminar tree induced by the family of strong modules. Hence Theorem 15 could be used to produce a partially-ordered and labeled tree which displays all the modules of . However, this weakly-partitive tree is not sufficient for being able to recover the graph from it. We now prove how to obtain the enriched modular decomposition of through a -transduction.
To model enriched modular decompositions as relational structures we use the relational vocabulary where and are two binary relation names. An enriched modular decomposition of a graph is modeled by the -structure with universe , being the set of pairs for which is an ancestor of in , and being the set of all pairs such that (in particular, and are siblings in ). We use Lemma 13 in order to transduce the maximal modular decomposition of a graph.
Theorem 18.
There exists a non-deterministic -transduction such that for every directed graph represented as the -structure , is non-empty and every output in is equal to some -structure representing the enriched modular decomposition of .
Proof.
Let be a graph represented by the -structure . Several objects are associated to , and each of them can be described by a structure:
-
let be the family of non-empty modules of and let be the -structure modeling the weakly-partitive set system with ;
-
let be the laminar tree induced by the weakly-partitive family and let be the -structure modeling it with and ;
-
let be the -edge relation, namely the subset of such that is the maximal modular decomposition of , and let be the -structure modeling it with and .
Our -transduction is obtained by composing the three following transductions:
-
: an -interpretation which outputs the -structure from ;
-
: the non-deterministic -transduction given by Lemma 13 which produces the -structure from ;
-
: an -interpretation which outputs the -structure from .
In order to define it is sufficient to observe that there exists an -formula with one monadic free-variable, which is satisfied exactly when is a non-empty module of . Then, since is given by Lemma 13, it only remains to define . Given an inner node , we can select, within , the set of leaves of the subtree rooted in . We thus assume a function , with one first-order free-variable which returns the set of leaves of the subtree rooted at the given node. Equipped with this function, we can define the -formula which selects pairs of siblings such that . Remember that this happen exactly when there exist and such that . Hence, could be defined as:
Once defined, the -interpretation simply drops all non-necessary relations and predicates (namely and ) and keeps only the and relations.
Notice that it is routine to design a deterministic -transduction which, given an -structure representing an enriched modular decomposition of some directed graph , produces the -structure representing .
Cographs
Let be a graph, be its modular decomposition, and be the weakly-partitive tree induced by the (weakly-partitive) family of its modules. Let be an inner node of , let be its set of children, and let be the graph induced by on the set of children of . It can be checked that, if then is either a clique or an independant, and if then is a tournament consistent with (i.e., for every , is an edge of if and only if ) or with the inverse of . In the former case, we can refine the label into and labels, thus expressing that is a clique or an indenpendant, respectively. In the latter case, up-to reversing , we can ensure that is a tournament consistent with . This yields a refined weakly-partitive tree , where maps inner nodes to and is the order which ensures that tournaments are consistent with the corresponding . Notice that this labeled and partially-ordered tree is now uniquely determined from . Moreover, edges from that connect children of a node not labeled by can be recovered from the so-refined weakly-partitive tree. In particular, if no nodes of is labeled by , and thus is fully characterized by . Graphs for which this property holds are known as directed cographs, and can be described by the refined weakly-partitive tree, called cotree, explained above and formalized in the following statement.
Theorem 19.
Let be a directed cograph and let be the laminar tree induced by the family of its strong modules. There exists a unique total labeling from the set of inner nodes of to the set of labels, and, for each inner node , a unique linear ordering of its children, such that every inner node having exactly two children is labeled or , and the following condition is satisfied:
-
for every two leaves and of , denoting by their least common ancestor, is an edge of if and only if either is labeled by and , or is labeled by .
We naturally model cotrees as -structures as follow. A cotree is modeled by where , , and . The nodes that are labeled by could be recovered as those inner nodes whose children are related by , while the nodes that are labeled by could be recovered as those inner nodes which are labeled neither by nor by . Based on Theorem 19 and as a consequence of Theorem 18, we can design a -transduction which produces the cotree of a cograph from .
Corollary 20.
There exists a non-deterministic -transduction such that, for each cograph modeled by the -structure , is non-empty and every output in is equal to some -structure representing the cotree of .
5 Conclusion
We provide transductions for obtaining tree-like graph decompositions such as modular decompositions, cotrees, split decompositions and bi-join decompositions from a graph using . This improves upon results of Courcelle [10, 12] who gave such transductions for ordered graphs. In a more general settings, we also obtain -transductions outputing weakly-partitive and weakly-bipartitive trees of weakly-partitive and weakly-bipartitive systems (Items 6 and 7 of Theorem 1). It is worth mentionning that the latter transduction can be also used to -transduce canonical decompositions of other structures such as Tutte’s decomposition of matroids or generally split-decompositions of submodular functions [16] or modular decompositions of -structures [18] or of hypergraphs [21]. As shown by the application given in [12] for transducing Whitney’s isomorphism class of a graph, a line of research is to more investigate which structures can be -transduced from a graph or a set system by using the transductions from Theorem 1. Also, naturally, the question arises whether counting is necessary or whether is sufficient to transduce such decompositions. Furthermore, our results include that transducing rank decompositions for graphs of rank-width 1 is possible using . But it is not known whether rank-decompositions can be transduced in general using some suitable extension of . Nevertheless, a corollary of our results is that -transducing rank-decompositions can be now reduced to consider -transducing rank-decompositions of prime graphs wrt either modular decomposition or split-decomposition as if a graph has rank-width at least , then its rank-width is equal to the rank-width of its prime induced graphs wrt either modular or split decomposition. Thus, our results imply that, for any fixed , there is a -transduction that computes a clique-decomposition of small width for any graph belonging to a graph class whose prime graphs have sizes bounded by or prime graphs have linear clique-width bounded by , e.g., many -free graphs have small prime graphs or have small linear clique-width (see for instance [5] or [23] for prominent such examples).
References
- [1] Hans L Bodlaender. A linear time algorithm for finding tree-decompositions of small treewidth. In Proceedings of the twenty-fifth annual ACM symposium on Theory of computing, pages 226–234, 1993. doi:10.1145/167088.167161.
- [2] Mikołaj Bojańczyk. The category of mso transductions. CoRR, May 2023. arXiv:2305.18039v1.
- [3] Mikołaj Bojańczyk, Martin Grohe, and Michał Pilipczuk. Definable decompositions for graphs of bounded linear cliquewidth. Log. Methods Comput. Sci., 17(1), 2021. URL: https://lmcs.episciences.org/7125.
- [4] Mikołaj Bojańczyk and Michał Pilipczuk. Definability equals recognizability for graphs of bounded treewidth. In Martin Grohe, Eric Koskinen, and Natarajan Shankar, editors, Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’16, New York, NY, USA, July 5-8, 2016, pages 407–416. ACM, 2016. doi:10.1145/2933575.2934508.
- [5] Andreas Brandstädt, Feodor F. Dragan, Hoàng-Oanh Le, and Raffaele Mosca. New graph classes of bounded clique-width. Theory Comput. Syst., 38(5):623–645, 2005. doi:10.1007/S00224-004-1154-6.
- [6] Rutger Campbell, Bruno Guillon, Mamadou Moustapha Kanté, Eun Jung Kim, and Noleen Köhler. CMSO-transducing tree-like graph decompositions, 2024. doi:10.48550/arXiv.2412.04970.
- [7] Michel Chein, Michel Habib, and Marie-Catherine Maurer. Partitive hypergraphs. Discrete mathematics, 37(1):35–50, 1981. doi:10.1016/0012-365X(81)90138-2.
- [8] Bruno Courcelle. The monadic second-order logic of graphs. I. recognizable sets of finite graphs. Information and computation, 85(1):12–75, 1990. doi:10.1016/0890-5401(90)90043-H.
- [9] Bruno Courcelle. The monadic second-order logic of graphs V: On closing the gap between definability and recognizability. Theoretical Computer Science, 80(2):153–202, 1991. doi:10.1016/0304-3975(91)90387-H.
- [10] Bruno Courcelle. The monadic second-order logic of graphs X: linear orderings. Theor. Comput. Sci., 160(1&2):87–143, 1996. doi:10.1016/0304-3975(95)00083-6.
- [11] Bruno Courcelle. The monadic second-order logic of graphs XI: hierarchical decompositions of connected graphs. Theor. Comput. Sci., 224(1-2):35–58, 1999. doi:10.1016/S0304-3975(98)00306-5.
- [12] Bruno Courcelle. The monadic second-order logic of graphs XVI: Canonical graph decompositions. Logical Methods in Computer Science, 2, 2006. doi:10.2168/LMCS-2(2:2)2006.
- [13] Bruno Courcelle. Canonical graph decompositions. Talk, 2012. Available at https://www.labri.fr/perso/courcell/Conferences/ExpoCanDecsJuin2012.pdf.
- [14] Bruno Courcelle. The atomic decomposition of strongly connected graphs. Technical report, Université de Bordeaux, 2013. Available at https://www.labri.fr/perso/courcell/ArticlesEnCours/AtomicDecSubmitted.pdf.
- [15] Bruno Courcelle and Joost Engelfriet. Graph Structure and Monadic Second-Order Logic. Cambridge University Press, 2009. doi:10.1017/cbo9780511977619.
- [16] William H Cunningham. Decomposition of directed graphs. SIAM Journal on Algebraic Discrete Methods, 3(2):214–228, 1982.
- [17] Fabien de Montgolfier. Décomposition modulaire des graphes. Théorie, extension et algorithmes. Phd thesis, Université Montpellier II, LIRMM, 2003.
- [18] Andrzej Ehrenfeucht, Tero Harju, and Grzegorz Rozenberg. The Theory of 2-Structures – A Framework for Decomposition and Transformation of Graphs. World Scientific, 1999. URL: http://www.worldscibooks.com/mathematics/4197.html.
- [19] Daryl Funk, Dillon Mayhew, and Mike Newman. Tree automata and pigeonhole classes of matroids: I. Algorithmica, 84(7):1795–1834, 2022. doi:10.1007/S00453-022-00939-7.
- [20] Tobias Ganzow and Sasha Rubin. Order-invariant MSO is stronger than counting MSO in the finite. In Susanne Albers and Pascal Weil, editors, STACS 2008, 25th Annual Symposium on Theoretical Aspects of Computer Science, Bordeaux, France, February 21-23, 2008, Proceedings, volume 1 of LIPIcs, pages 313–324. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Germany, 2008. doi:10.4230/LIPICS.STACS.2008.1353.
- [21] Michel Habib, Fabien de Montgolfier, Lalla Mouatadid, and Mengchuan Zou. A general algorithmic scheme for combinatorial decompositions with application to modular decompositions of hypergraphs. Theor. Comput. Sci., 923:56–73, 2022. doi:10.1016/J.TCS.2022.04.052.
- [22] Petr Hlinený. Branch-width, parse trees, and monadic second-order logic for matroids. J. Comb. Theory B, 96(3):325–351, 2006. doi:10.1016/J.JCTB.2005.08.005.
- [23] Michaël Rao. MSOL partitioning problems on graphs of bounded treewidth and clique-width. Theor. Comput. Sci., 377(1-3):260–267, 2007. doi:10.1016/J.TCS.2007.03.043.
- [24] Michaël Rao. Décompositions de graphes et algorithmes efficaces. Phd thesis, Université Paul Verlaine – Metz, 2006.
- [25] Yann Strozecki. Monadic second-order model-checking on decomposable matroids. Discret. Appl. Math., 159(10):1022–1039, 2011. doi:10.1016/J.DAM.2011.02.005.