# Ptolemaic graph A Ptolemaic graph The gem graph or 3-fan is not Ptolemaic. A block graph, a special case of a Ptolemaic graph Three operations by which any distance-hereditary graph can be constructed. For Ptolemaic graphs, the neighbors of false twins are restricted to form a clique, preventing the construction of the 4-cycle shown here.

In graph theory, a Ptolemaic graph is an undirected graph whose shortest path distances obey Ptolemy's inequality, which in turn was named after the Greek astronomer and mathematician Ptolemy. The Ptolemaic graphs are exactly the graphs that are both chordal and distance-hereditary; they include the block graphs and are a subclass of the perfect graphs.

## Characterization

A graph is Ptolemaic if and only if it obeys any of the following equivalent conditions:

• The shortest path distances obey Ptolemy's inequality: for every four vertices u, v, w, and x, the inequality d(u,v)d(w,x) + d(u,x)d(v,w) ≥ d(u,w)d(v,x) holds. For instance, the gem graph (3-fan) in the illustration is not Ptolemaic, because in this graph d(u,w)d(v,x) = 4, greater than d(u,v)d(w,x) + d(u,x)d(v,w) = 3.
• For every two overlapping maximal cliques, the intersection of the two cliques is a separator that splits the differences of the two cliques. In the illustration of the gem graph, this is not true: cliques uvy and wxy are not separated by their intersection, y, because there is an edge vw that connects the cliques but avoids the intersection.
• Every k-vertex cycle has at least 3(k 3)/2 diagonals.
• The graph is both chordal (every cycle of length greater than three has a diagonal) and distance-hereditary (every connected induced subgraph has the same distances as the whole graph). The gem shown is chordal but not distance-hereditary: in the subgraph induced by uvwx, the distance from u to x is 3, greater than the distance between the same vertices in the whole graph. Because both chordal and distance-hereditary graphs are perfect graphs, so are the Ptolemaic graphs.
• The graph is chordal and does not contain an induced gem, a graph formed by adding two non-crossing diagonals to a pentagon.
• The graph is distance-hereditary and does not contain an induced 4-cycle.
• The graph can be constructed from a single vertex by a sequence of operations that add a new degree-one (pendant) vertex, or duplicate (twin) an existing vertex, with the exception that a twin operation in which the new duplicate vertex is not adjacent to its twin (false twins) can only be applied when the neighbors of the twins form a clique. These three operations without the exception form all distance-hereditary graph. To form all Ptolemaic graphs, it is not enough to use pendant vertices and true twins; the exceptional case of false twins is sometimes also required.
• The Hasse diagram of the subset relation on nonempty intersections of maximal cliques forms an oriented tree.
• The convex subsets of vertices (subsets that contain every shortest path between two vertices in the subset) form a convex geometry. That is, every convex set can be reached from the whole vertex set by repeatedly removing an extreme vertex, one that does not belong to any shortest path between the remaining vertices. In the gem, the convex set uxy cannot be reached in this way, because neither v nor w is extreme.

## Computational complexity

Based on the characterization by oriented trees, Ptolemaic graphs can be recognized in linear time.

## References

1. Kay, David C.; Chartrand, Gary (1965), "A characterization of certain ptolemaic graphs", Canadian Journal of Mathematics, 17: 342–346, doi:10.4153/CJM-1965-034-0, MR 0175113.
2. Howorka, Edward (1981), "A characterization of Ptolemaic graphs", Journal of Graph Theory, 5 (3): 323–331, doi:10.1002/jgt.3190050314, MR 625074.
3. "Graphclass: ptolemaic", Information System on Graph Classes and their Inclusions, retrieved 2016-06-05.
4. McKee, Terry A. (2010), "Clique graph representations of Ptolemaic graphs", Discussiones Mathematicae Graph Theory, 30 (4): 651–661, doi:10.7151/dmgt.1520, MR 2761626.
5. 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 859310.
6. Uehara, Ryuhei; Uno, Yushi (2009), "Laminar structure of Ptolemaic graphs with applications", Discrete Applied Mathematics, 157 (7): 1533–1543, doi:10.1016/j.dam.2008.09.006, MR 2510233.
7. Farber, Martin; Jamison, Robert E. (1986), "Convexity in graphs and hypergraphs", SIAM Journal on Algebraic and Discrete Methods, 7 (3): 433–444, doi:10.1137/0607049, MR 844046.
This article is issued from Wikipedia - version of the 6/7/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.