# Distance-hereditary graph

In graph theory, a branch of discrete mathematics, a **distance-hereditary graph** (also called a **completely separable graph**)[1] is a graph in which the distances in any connected induced subgraph are the same as they are in the original graph. Thus, any induced subgraph inherits the distances of the larger graph.

Distance-hereditary graphs were named and first studied by Howorka (1977), although an equivalent class of graphs was already shown to be perfect in 1970 by Olaru and Sachs.[2]

It has been known for some time that the distance-hereditary graphs constitute an intersection class of graphs,[3] but no intersection model was known until one was given by Gioan & Paul (2012).

## Definition and characterization

The original definition of a distance-hereditary graph is a graph *G* such that, if any two vertices *u* and *v* belong to a connected induced subgraph *H* of *G*, then some shortest path connecting *u* and *v* in *G* must be a subgraph of *H*, so that the distance between *u* and *v* in *H* is the same as the distance in *G*.

Distance-hereditary graphs can also be characterized in several other equivalent ways:[4]

- They are the graphs in which every induced path is a shortest path, or equivalently the graphs in which every non-shortest path has at least one edge connecting two non-consecutive path vertices.
- They are the graphs in which every cycle of length at least five has two or more diagonals, and in which every cycle of length exactly five has at least one pair of crossing diagonals.
- They are the graphs in which every cycle of length five or more has at least one pair of crossing diagonals.
- They are the graphs in which, for every four vertices
*u*,*v*,*w*, and*x*, at least two of the three sums of distances*d*(*u*,*v*)+*d*(*w*,*x*),*d*(*u*,*w*)+*d*(*v*,*x*), and*d*(*u*,*x*)+*d*(*v*,*w*) are equal to each other. - They are the graphs that do not have as isometric subgraphs any cycle of length five or more, or any of three other graphs: a 5-cycle with one chord, a 5-cycle with two non-crossing chords, and a 6-cycle with a chord connecting opposite vertices.

- They are the graphs that can be built up from a single vertex by a sequence of the following three operations, as shown in the illustration:
- Add a new
*pendant vertex*connected by a single edge to an existing vertex of the graph. - Replace any vertex of the graph by a pair of vertices, each of which has the same set of neighbors as the replaced vertex. The new pair of vertices are called
*false twins*of each other. - Replace any vertex of the graph by a pair of vertices, each of which has as its neighbors the neighbors of the replaced vertex together with the other vertex of the pair. The new pair of vertices are called
*true twins*of each other.

- Add a new
- They are the graphs that can be completely decomposed into cliques and stars (complete bipartite graphs
*K*_{1,q}) by a split decomposition. In this decomposition, one finds a partition of the graph into two subsets, such that the edges separating the two subsets form a complete bipartite subgraph, forms two smaller graphs by replacing each of the two sides of the partition by a single vertex, and recursively partitions these two subgraphs.[5] - They are the graphs that have rank-width one, where the rank-width of a graph is defined as the minimum, over all hierarchical partitions of the vertices of the graph, of the maximum rank among certain submatrices of the graph's adjacency matrix determined by the partition.[6]

## Relation to other graph families

Every distance-hereditary graph is a perfect graph,[7] more specifically a perfectly orderable graph[8] and a Meyniel graph. Every distance-hereditary graph is also a parity graph, a graph in which every two induced paths between the same pair of vertices both have odd length or both have even length.[9] Every even power of a distance-hereditary graph *G* (that is, the graph *G*^{2i} formed by connecting pairs of vertices at distance at most 2*i* in *G*) is a chordal graph.[10]

Every distance-hereditary graph can be represented as the intersection graph of chords on a circle, forming a circle graph. This can be seen by building up the graph by adding pendant vertices, false twins, and true twins, at each step building up a corresponding set of chords representing the graph. Adding a pendant vertex corresponds to adding a chord near the endpoints of an existing chord so that it crosses only that chord; adding false twins corresponds to replacing a chord by two parallel chords crossing the same set of other chords; and adding true twins corresponds to replacing a chord by two chords that cross each other but are nearly parallel and cross the same set of other chords.

A distance-hereditary graph is bipartite if and only if it is triangle-free. Bipartite distance-hereditary graphs can be built up from a single vertex by adding only pendant vertices and false twins, since any true twin would form a triangle, but the pendant vertex and false twin operations preserve bipartiteness. Every bipartite distance-hereditary graph is chordal bipartite and modular.[11]

The graphs that can be built from a single vertex by pendant vertices and true twins, without any false twin operations, are special cases of the Ptolemaic graphs and include the block graphs. The graphs that can be built from a single vertex by false twin and true twin operations, without any pendant vertices, are the cographs, which are therefore distance-hereditary; the cographs are exactly the disjoint unions of diameter-2 distance-hereditary graphs. The neighborhood of any vertex in a distance-hereditary graph is a cograph. The transitive closure of the directed graph formed by choosing any set of orientations for the edges of any tree is distance-hereditary; the special case in which the tree is oriented consistently away from some vertex forms a subclass of distance-hereditary graphs known as the trivially perfect graphs, which are also called chordal cographs.[12]

## Algorithms

Distance-hereditary graphs can be recognized, and parsed into a sequence of pendant vertex and twin operations, in linear time.[13]

Because distance-hereditary graphs are perfect, some optimization problems can be solved in polynomial time for them despite being NP-hard for more general classes of graphs. Thus, it is possible in polynomial time to find the maximum clique or maximum independent set in a distance-hereditary graph, or to find an optimal graph coloring of any distance-hereditary graph.[14] Because distance-hereditary graphs are circle graphs, they inherit polynomial time algorithms for circle graphs; for instance, it is possible determine in polynomial time the treewidth of any circle graph and therefore of any distance-hereditary graph.[15] Additionally, the clique-width of any distance-hereditary graph is at most three.[16] As a consequence, by Courcelle's theorem, efficient dynamic programming algorithms exist for many problems on these graphs.[17]

Several other optimization problems can also be solved more efficiently using algorithms specifically designed for distance-hereditary graphs. As D'Atri & Moscarini (1988) show, a minimum connected dominating set (or equivalently a spanning tree with the maximum possible number of leaves) can be found in polynomial time on a distance-hereditary graph. A Hamiltonian cycle or Hamiltonian path of any distance-hereditary graph can also be found in polynomial time.[18]

## Notes

- Hammer & Maffray (1990).
- Olaru and Sachs showed the α-perfection of the graphs in which every cycle of length five or more has a pair of crossing diagonals (Sachs 1970, Theorem 5). By Lovász (1972), α-perfection is an equivalent form of definition of perfect graphs.
- McKee & McMorris (1999)
- Howorka (1977); Bandelt & Mulder (1986); Hammer & Maffray (1990); Brandstädt, Le & Spinrad (1999), Theorem 10.1.1, p. 147.
- Gioan & Paul (2012). A closely related decomposition was used for graph drawing by Eppstein, Goodrich & Meng (2006) and (for bipartite distance-hereditary graphs) by Hui, Schaefer & Štefankovič (2004).
- Oum (2005).
- Howorka (1977).
- Brandstädt, Le & Spinrad (1999), pp. 70–71 and 82.
- Brandstädt, Le & Spinrad (1999), p.45.
- Brandstädt, Le & Spinrad (1999), Theorem 10.6.14, p.164.
- Bipartite distance-hereditary graphs, Information System on Graph Classes and their Inclusions, retrieved 2016-09-30.
- Cornelsen & Di Stefano (2005).
- Damiand, Habib & Paul (2001); Gioan & Paul (2012). An earlier linear time bound was claimed by Hammer & Maffray (1990) but it was discovered to be erroneous by Damiand.
- Cogis & Thierry (2005) present a simple direct algorithm for maximum weighted independent sets in distance-hereditary graphs, based on parsing the graph into pendant vertices and twins, correcting a previous attempt at such an algorithm by Hammer & Maffray (1990). Because distance-hereditary graphs are perfectly orderable, they can be optimally colored in linear time by using LexBFS to find a perfect ordering and then applying a greedy coloring algorithm.
- Kloks (1996); Brandstädt, Le & Spinrad (1999), p. 170.
- Golumbic & Rotics (2000).
- Courcelle, Makowski & Rotics (2000); Espelage, Gurski & Wanke (2001).
- Hsieh et al. (2002); Müller & Nicolai (1993).

## References

- Bandelt, Hans-Jürgen; Mulder, Henry Martyn (1986), "Distance-hereditary graphs",
*Journal of Combinatorial Theory*, Series B,**41**(2): 182–208, doi:10.1016/0095-8956(86)90043-2, MR 0859310. - Brandstädt, Andreas; Le, Van Bang; Spinrad, Jeremy (1999),
*Graph Classes: A Survey*, SIAM Monographs on Discrete Mathematics and Applications, ISBN 0-89871-432-X. - Cogis, O.; Thierry, E. (2005), "Computing maximum stable sets for distance-hereditary graphs",
*Discrete Optimization*,**2**(2): 185–188, doi:10.1016/j.disopt.2005.03.004, MR 2155518. - Cornelsen, Sabine; Di Stefano, Gabriele (2005), "Treelike comparability graphs: characterization, recognition, and applications",
*Proc. 30th Int. Worksh. Graph-Theoretic Concepts in Computer Science (WG 2004)*, Lecture Notes in Computer Science,**3353**, Springer-Verlag, pp. 46–57, doi:10.1007/978-3-540-30559-0_4, ISBN 9783540241324-9783540305590 Check`|isbn=`

value: length (help), MR 2158633. - Courcelle, B.; Makowski, J. A.; Rotics, U. (2000), "Linear time solvable optimization problems on graphs on bounded clique width",
*Theory of Computing Systems*,**33**(2): 125–150, doi:10.1007/s002249910009. - D'Atri, Alessandro; Moscarini, Marina (1988), "Distance-hereditary graphs, Steiner trees, and connected domination",
*SIAM Journal on Computing*,**17**(3): 521–538, doi:10.1137/0217032, MR 0941943. - Damiand, Guillaume; Habib, Michel; Paul, Christophe (2001), "A simple paradigm for graph recognition: application to cographs and distance hereditary graphs",
*Theoretical Computer Science*,**263**(1–2): 99–111, doi:10.1016/S0304-3975(00)00234-6, MR 1846920. - Eppstein, David; Goodrich, Michael T.; Meng, Jeremy Yu (2006), "Delta-confluent drawings", in Healy, Patrick; Nikolov, Nikola S. (eds.),
*Proc. 13th Int. Symp. Graph Drawing (GD 2005)*, Lecture Notes in Computer Science,**3843**, Springer-Verlag, pp. 165–176, arXiv:cs.CG/0510024, doi:10.1007/11618058_16, MR 2244510. - Espelage, W.; Gurski, F.; Wanke, E. (2001), "How to solve NP-hard graph problems on clique-width bounded graphs in polynomial time",
*Proc. 27th Int. Worksh. Graph-Theoretic Concepts in Computer Science (WG 2001)*, Lecture Notes in Computer Science,**2204**, Springer-Verlag, pp. 117–128. - Gioan, Emeric; Paul, Christophe (2012), "Split decomposition and graph-labelled trees: Characterizations and fully dynamic algorithms for totally decomposable graphs",
*Discrete Applied Mathematics*,**160**(6): 708–733, arXiv:0810.1823, doi:10.1016/j.dam.2011.05.007. - Golumbic, Martin Charles; Rotics, Udi (2000), "On the clique-width of some perfect graph classes",
*International Journal of Foundations of Computer Science*,**11**(3): 423–443, doi:10.1142/S0129054100000260, MR 1792124. - Hammer, Peter Ladislaw; Maffray, Frédéric (1990), "Completely separable graphs",
*Discrete Applied Mathematics*,**27**(1–2): 85–99, doi:10.1016/0166-218X(90)90131-U, MR 1055593. - Howorka, Edward (1977), "A characterization of distance-hereditary graphs",
*The Quarterly Journal of Mathematics. Oxford. Second Series*,**28**(112): 417–420, doi:10.1093/qmath/28.4.417, MR 0485544. - Hsieh, Sun-yuan; Ho, Chin-wen; Hsu, Tsan-sheng; Ko, Ming-tat (2002), "Efficient algorithms for the Hamiltonian problem on distance-hereditary graphs",
*Computing and Combinatorics: 8th Annual International Conference, COCOON 2002 Singapore, August 15–17, 2002, Proceedings*, Lecture Notes in Computer Science,**2387**, Springer-Verlag, pp. 51–75, doi:10.1007/3-540-45655-4_10, ISBN 978-3-540-43996-7, MR 2064504. - Hui, Peter; Schaefer, Marcus; Štefankovič, Daniel (2004), "Train tracks and confluent drawings", in Pach, János (ed.),
*Proc. 12th Int. Symp. Graph Drawing (GD 2004)*, Lecture Notes in Computer Science,**3383**, Springer-Verlag, pp. 318–328. - Kloks, T. (1996), "Treewidth of circle graphs",
*International Journal of Foundations of Computer Science*,**7**(2): 111–120, doi:10.1142/S0129054196000099. - Lovász, László (1972), "Normal hypergraphs and the perfect graph conjecture",
*Discrete Mathematics*,**2**(3): 253–267, doi:10.1016/0012-365X(72)90006-4, MR 0302480. - McKee, Terry A.; McMorris, F. R. (1999),
*Topics in Intersection Graph Theory*, SIAM Monographs on Discrete Mathematics and Applications,**2**, Philadelphia: Society for Industrial and Applied Mathematics, doi:10.1137/1.9780898719802, ISBN 0-89871-430-3, MR 1672910 - Müller, Haiko; Nicolai, Falk (1993), "Polynomial time algorithms for Hamiltonian problems on bipartite distance-hereditary graphs",
*Information Processing Letters*,**46**(5): 225–230, doi:10.1016/0020-0190(93)90100-N, MR 1228792. - Oum, Sang-il (2005), "Rank-width and vertex-minors",
*Journal of Combinatorial Theory*, Series B,**95**(1): 79–100, doi:10.1016/j.jctb.2005.03.003, MR 2156341. - Sachs, Horst (1970), "On the Berge conjecture concerning perfect graphs",
*Combinatorial Structures and their Applications (Proc. Calgary Internat. Conf., Calgary, Alta., 1969)*, Gordon and Breach, pp. 377–384, MR 0272668.