A forbidden subgraph characterization of some graph classes using betweenness axioms

Manoj Changat Department of Futures Studies University of Kerala Trivandrum - 695034, India e-mail: [email protected] Anandavally K Lakshmikuttyamma ∗ Department of Futures Studies University of Kerala, Trivandrum-695034, India e-mail: [email protected] Joseph Mathews Iztok Peterin C-GRAF, Department of Futures Studies University of Maribor University of Kerala, Trivandrum-695034, India FEECS, Smetanova 17, e-mail:[email protected] 2000 Maribor, Slovenia [email protected] Prasanth G. Narasimha-Shenoi Geetha Seethakuttyamma Department of Mathematics Department of Mathematics Government College, Chittur College of Engineering Palakkad - 678104, India Karungapally e-mail: [email protected] e-mail:[email protected] Simon Špacapan University of Maribor, FME, Smetanova 17, 2000 Maribor, Slovenia. e-mail: [email protected].

July 27, 2012

∗ The work of this author (On leave from Mar Ivanios College, Trivandrum) is supported by the University Grants Commission (UGC), Govt. of India under the FIP scheme.

1 Abstract

Let IG(x,y) and JG(x,y) be the geodesic and interval between x and y in a connected graph G, respectively. The following three betweenness axioms are considered for a set V and R : V × V → 2V (i) x ∈ R(u,y),y ∈ R(x,v),x 6= y, |R(u,v)| > 2 ⇒ x ∈ R(u,v) (ii) x ∈ R(u,v) ⇒ R(u,x) ∩ R(x,v)= {x} (iii)x ∈ R(u,y),y ∈ R(x,v),x 6= y, ⇒ x ∈ R(u,v).

We characterize the class of graphs for which IG satisfies (i), and the class for which JG satisfies (ii) and the class for which IG or JG satisfies (iii). The characterization is given by forbidden induced subgraphs. The class of graphs that we characterize include a proper subclass and superclass of distance hereditary graphs and we give an axiomatic characterization of chordal and Ptolemaic graphs.

Keywords: forbidden subgraphs, induced path, interval function, betweenness axioms, chordal graphs, distance hereditary graphs AMS subject classification (2010): 05C38, 05C75

1 Introduction and Preliminaries

Let C be a class of graphs. We say that G is a C-free graph if G has no isomorphic to a graph in C. There are many graph classes that admit a characterization by forbidden induced subgraphs, or alternatively, they are defined by forbidden induced subgraphs. For example a is a graph with no induced of length more than three. A subgraph H is an isometric subgraph of G, if dG(u,v) = dH (u,v) for all u,v ∈ V (H). Graph G is called distance hereditary if every connected induced subgraph is isometric. The first characterizations of these graphs is due to Howorka (see [9]). A Ptolemaic graph is a graph which is both, chordal and distance hereditary. Ptolemaic graphs also admit a characterization by forbidden induced subgraphs, namely G is Ptolemaic if and only if it is a 3-fan free chordal graph. [2]). Other examples of graph classes defined by a list of forbidden induced subgraphs, and relations between them, are presented in a survey by Brandstädt et.al. (see [2]) and in the Information System on Graph Classes and their Inclusions (see [18]). The geodesic interval between u and v, denoted as I(u,v), is the set of all vertices lying on a shortest u,v-path. A straightforward generalization of the interval function I(u,v) is the function J(u,v). This is the induced path interval or monophonic interval, which consists of all vertices lying on an induced path between u and v. For a more detailed look into interval functions I(u,v) and J(u,v) see [4, 5, 11, 10, 17] where they are studied in a much broader context of transit functions. A transit function on a non-empty set V is a function R : V × V → 2V such that for every u,v ∈ V :

(t1) u ∈ R(u,v), (t2) R(u,v)= R(v,u), (t3) R(u,u)= {u}.

2 Transit functions appear under different names, a transit function in [3, 4, 5, 12, 7], an interval function or an interval operator in [15, 17], and an organizing function in [13]. The geodesic interval function I(u,v) and the induced path interval function J(u,v) are basic examples of transit functions. If V is the set of a graph G then R is called a transit function on G. The underlying graph GR of a transit function R is a graph with vertex set V , where two distinct vertices u and v are adjacent in GR if |R(u,v)| = 2. Nebeský has given several axiomatic characterizations of the interval function I, see [14, 15, 16]. Recently, Mulder and Nebeský in [13], gave an axiomatic characterization in which they use five axioms. These are (t1) and (t2) and three additional (b2), (b3), and (b4) as listed below:

(b1) x ∈ R(u,v),x 6= v ⇒ v 6∈ R(u,x), (b2) if x ∈ R(u,v) and y ∈ R(u,x), then y ∈ R(u,v), (b3) if x ∈ R(u,v) and y ∈ R(u,x) then, x ∈ R(y,v), (b4) if x ∈ R(u,v), then R(u,x) ∩ R(x,v)= {x}. The notation x ∈ R(u,v) can be interpreted as x is between u and v. Hence we can use this terminology and therefore (b2) can be formulated as: if x is between u and v, and y is between u and x, then y is between u and v. Similarly we can describe all other axioms. This interpretation was the motivation for introducing the concept of betweenness in graphs. It was formally introduced by Mulder in [12], and we say that a transit function is a betweenness if it satisfies (b1) and (b2). The geodesic transit function I satisfies the axioms (b1), (b2) and (b3) for every graph (see [1]). On the other hand J(u,v) does not have these betweenness properties in general. Both axioms (b3) and (b4) are stronger than (b1). The converse in not true, 3-fan and 4-fan are examples of graphs that prove (b3) or (b4) does not necessarily follow from (b1) for the induced path transit function (see Figures 1 and 2). The graphs in which the induced path transit function J satisfies the axiom (b1) are characterized in [10], where it is proved that J is a betweenness on G if and only if G is HHD- free (House, Hole, and Domino-free). Moreover J satisfies (b2) and (b3) if and only if G is distance hereditary. In [5], the graphs in which J satisfies the (b2) axiom are characterized. Even though axiom (b4) is stronger than (b1), the class of graphs in which J satisfies the (b4) axiom has not been characterized yet. Motivated by Nebeský’s axiomatic characterization of the interval function I(u,v), such a characterization is obtained for the all paths-transit function A(u,v) in [3], where A(u,v) is the set of all vertices lying on a u,v-path in G. However such a character- ization is not possible for the induced path transit function J as shown by Nebeský in [16], using first order logic. But in [6], it is proved that there exists an axiomatic characterization of J, satisfying the additional betweenness axioms (b1) and (b2). The following axioms defined in [6] are essential for this characterization.

3 (J1) w ∈ R(u,v),w 6= u,v ⇒ there exists u1 ∈ R(u,w) \ R(v,w) and v1 ∈ R(v,w) \ R(u,w), such that R(u1,w)= {u1,w}, R(v1,w)= {v1,w} and w ∈ R(u1,v1). (J2) R(u,x)= {u,x},R(x,v)= {x,v},u 6= v, R(u,v) 6= {u,v} ⇒ x ∈ R(u,v). (J20) x ∈ R(u,y), y ∈ R(x,v), |R(u,x)| = |R(x,y)| = |R(y,v)| = 2, |R(u,v)| > 2 ⇒ x ∈ R(u,v) (J3) x ∈ R(u,y),y ∈ R(x,v),x 6= y, |R(u,v)| > 2 ⇒ x ∈ R(u,v). (J30) x ∈ R(u,y),y ∈ R(x,v), |R(x,y)|, |R(u,v)| > 2 ⇒ x ∈ R(u,v). It is straightforward to see that I always satisfies the axiom (J1), while it is proved in [6] that J satisfies the axiom (J1) if and only if it is a betweenness. The axiom (J2) is always satisfied by both I and J while (J20) is a natural extension of the axiom (J2), and is always satisfied by J, but not necessarily by I. Observe that the axiom (J3) is an extension of the axiom (J20). Both I and J need not satisfy the axiom (J3) in general. In this paper, we characterize the graphs in which the interval function I satisfies the axioms (J20) and (J3). The class of graphs where I satisfies the (J3) axiom turns out to be a class of graphs which is a subclass of the distance hereditary graphs not containing the P -graph as an induced subgraph. We also consider a relaxation of the axiom (J3) and (J20), and call it the (J0) axiom

(J0): For any pairwise distinct elements u,v,x,y ∈ V , such that x ∈ R(u,y) and y ∈ R(x,v), we have x ∈ R(u,v).

This axiom turns out to be crucial for both I and J as the class of graphs for which both I and J satisfy this axiom are the chordal graphs and Ptolemaic graphs, respectively. In the last section we present an axiomatic characterization of the induced path transit function of chordal graphs and Ptolemaic graphs using the axiom (J0).

u u v y

¥  u

 x

¡ ¢ ¦ 

x x § a x

 y

£ ¤ ©   y v y ¨ v u v House Hole P - graph 3-fan

Figure 1: The family C.

The rest of the paper is divided into three sections. In Section 2, we characterize the graphs for which the interval function I satisfies the (J3) axiom and show that this is a proper subclass of distance hereditary graphs. We define the family C (see Figure 1,2) and prove the following theorem.

4 Theorem 1. For every graph G, IG satisfies the axiom (J3) if and only if G is a C-free graph.

u u x v

  %

 u

&

   ! $ '

 y x

(

)     "

x v x v u # v House Hole Domino 4-fan

Figure 2: The family D.

In Section 3, graphs for which J satisfies the (b4) axiom are characterized. Here we define the family D (see Figure 2) and prove:

Theorem 2. For every graph G, JG satisfies the axiom (b4) if and only if G is a D-free graph.

In Section 4, the class of graphs for which both I and J satisfy the axiom (J0) are characterized which are Ptolemaic and chordal graphs, respectively.

2 Characterization of C-free graphs

First we fix the notation to be used in the rest of the paper. Let G = (V,E) be a connected graph. We denote by u → P → v a path P starting in u and ending in v, and call it an u,v-path in G. If x and y are two adjacent vertices on an u,v-path P , we denote this by u → P → xy → P → v. If x is a vertex on u → P → v we write x ∈ u → P → v, otherwise we write x 6∈ u → P → v. In Figures 1 and 2 we define a hole, a house, a domino, a P -graph, and a k-fan. These are induced subgraphs of G. For example, an induced cycle of length at least five is called a hole. Let C be the family of graphs containing the house, all holes, the P -graph, and the 3-fan. Additionally let D be the family of graphs containing the house, all holes, the domino, and the 3-fan. 0 Proposition 3. For every graph G, IG satisfies the (J2 ) axiom if and only if G is house, C5, and 3-fan free. Proof. It is easy to see that if G contains an induced house that there are distinct vertices x,y,u,v, such that x ∈ IG(u,y),y ∈ IG(x,v) and |IG(u,x)| = |IG(x,y)| = 0 |IG(y,v)| = 2, but x∈ / I(u,v) (see Figure 1). Similarly we prove that (J2 ) does not

5 hold, if G has an induced C5 or 3-fan (again see Figure 1). To prove the converse assume 0 that IG does not satisfy the (J2 ) axiom. Then there are distinct vertices x,y,u,v that induce a path in G. Indeed, since |IG(u,x)| = |IG(x,y)| = |IG(y,v)| = 2 we find that u,x,y,v is a path in G, and it follows from x ∈ IG(u,y),y ∈ IG(x,v),IG(u,v) 6= {u,v} that this path is induced. Since x∈ / IG(u,v), there is a vertex t adjacent to both u and v. If t is not adjacent to x and y, we have an induced 5-cycle uxyvtu, otherwise we have an induced house or 3-fan.

Before we characterize C-free graphs, we give a technical lemma.

Lemma 4. Let G be a graph without isometric holes. If Cn is a hole, then n ≥ 6 and G contains a 3-fan,a house, or a P graph as induced subgraphs.

Proof. Let Cn be a hole in G that is not isometric and assume that n is minimum.

Clearly n ≥ 6 and there exists u,v ∈ V (Cn) such that dG(u,v) < dCn (u,v). Let P = p0 ...pk be an u,v-geodesic and we may choose P so that k is minimum. Let Q and R be the u,v-paths on Cn where Q = q0 ...q`, R = r0 ...rm and u = p0 = q0 = r0 and v = pk = q` = rm. Clearly 2 ≤ k<` and k < m and we may assume without loss of generality that ` ≤ m. By minimality of k can pi be adjacent to qj (or rj) only if i = j or j = i + 1. Hence ` = m = k + 1. First note that p1 must be adjacent to at least one of {q1,q2} and of {r1,r2} by the minimality of n or by assumptions of lemma (since there are no isometric holes). Let first k = 2. If either q1 or q2 is not adjacent to p1 we have an induced house as a subgraph. Otherwise we have an induced 3-fan on {p1,q0,q1,q2,q3}. Let now k > 2. By above q1p2,r1p2,p1q3,p1r3 ∈/ E(G). Suppose that at least one of q2 or r2, say q2 is adjacent to p1. If both q1 and r1 are adjacent to p1, we have an induced 3-fan on {p1,r1,q0,q1,q2}. If q1 is adjacent to p1 but r1 is not, we have an induced house on {p1,q0,q1,r1,r2}. If both q1 and r1 are not adjacent to p1, we have an induced P -graph on {p1,q0,q1,q2,r1}. Hence q2p1 ∈/ E(G) but q1p1 ∈ E(G) and symmetric r2p1 ∈/ E(G) but r1p1 ∈ E(G). Since q2p1,q1p2 ∈/ E(G), p2 and q2 must be adjacent by the assumption of the lemma or minimality of n. This yields an induced house on {p2,p1,q0,q1,q2} which completes the proof. Proof of Theorem 1. Suppose that G has a house, a hole, a P -graph, or a 3-fan as an induced subgraph. In a graph with an induced house or 3-fan, I violates the (J20) so it does not satisfy (J3) either. If G has an isometric P -graph, then also the axiom (J3) is violated by the interval function I. If an induced P -graph is not isometric, then there is a vertex z adjacent to both u and y (see Figure 1 for notation). In this case, the graph induced by u,a,x,y,z is either a C5 or a house or a 3-fan. Suppose G has a hole which is also isometric. Let u,x,y be three consecutive vertices of this hole, additionally let v be at the same distance to u and x if the hole is odd and antipodal vertex of x if it is even. Clearly I violate (J3) axiom with u,x,y,v. If no hole is not isometric, then by Lemma 4, G contains a 3-fan, a house, or a P -graph as induced subgraphs and we are done.

6 Now assume that I does not satisfy the (J3) axiom. Then there exists distinct vertices u,x,y,v in V such that x ∈ IG(u,y),y ∈ IG(x,v) and x∈ / IG(u,v). Let P be an u,y-geodesic containing x and Q be an x,v-geodesic containing y. First we show that M = u → P → x → P → y → Q → v is an u,v-path. Since P and Q are both geodesics we find that dP (x,y) = dQ(x,y). Thus x → P → y → Q → v is an x,v-geodesic and x → P → y and y → Q → v have only y in common. Next we show that u → P → x and y → Q → v have no vertices in common. Assume on the contrary, that w ∈ (u → P → x) ∩ (y → Q → v) .

Clearly dP (w,y)= dQ(y,w), and since x 6= y we find that dP (w,x)

a(R) = max{i | ui ∈ R,ij0} . Note that the above maximum and minimum always exist because u and v are in R. Let R be an u,v-geodesic such that there is no u,v-geodesic R0 with 0 0 b(R ) − a(R ) < b(R) − a(R) and set a = ua(R) and b = ub(R). Label the vertices of a, b-subpath of R as a = a0,...,ak = b and the vertices of a → P → y → Q → b by a = b0, . . . , b` = b. Since a 6= x and b 6= y we have ` ≥ 3. In particular note that bi is not adjacent to ai for ij0 we find that both x,y are between bi and bj and hence j − i ≥ 3. It follows from minimality of j − i that bi, . . . , bj induces a cycle. If j − i ≥ 4 we have a hole. Otherwise j − i = 3 and then we have an induced 4-cycle bi, x, y, bj. Since bibj ∈ E(G) and |I(u,v)| > 2 we find that there is a vertex t ∈ M that is adjacent to bi or bj and is not in bi, . . . , bj. (Note that t can be bi−1 or bj+1.) Now t together with bi, x, y, bj induces a house or a P -graph. From now assume that b0, . . . , b` is induced. Therefore k ≥ 2. Case 1 a1b1 ∈/ E(G). If also a1b2 ∈/ E(G), we have an induced cycle of length ≥ 5. So let a1b2 ∈ E(G). If a1b3 ∈ E(G) (also when b3 = a2), then we have an induced house on {b0, b1, b2, b3,a1}, otherwise (if b3a1 ∈/ E(G)) we have an induced P -graph on the same set of vertices. Case 2 a1b1 ∈ E(G). If b3 = a2, we have an induced house on a0,a1, b1, b2, b3 if a1b2 ∈/ E(G) or a 3-fan if a1b2 ∈ E(G). So assume b3 6= a2 and also b3a1 ∈/ E(G) (for otherwise, if b3a1 ∈ E(G) we have a house or a 3-fan as in the case a2 = b3).

7 • If b2a1 ∈/ E(G), b2a2 ∈/ E(G) we have a hole.

• If b2a1 ∈/ E(G), b2a2 ∈ E(G) we have a house on {a0,a1,a2, b1, b2}.

• If b2a1 ∈ E(G), b2a2 ∈/ E(G) then if b2a3 ∈ E(G) we have a house, otherwise if b2a3 ∈/ E(G) we have a house (if a1b4 ∈ E(G)) or a hole (otherwise).

• If b2a1 ∈ E(G), b2a2 ∈ E(G) we have a 3-fan on {b0, b1, b2,a1,a2}.

Bandelt and Mulder obtained a forbidden induced subgraph characterization of dis- tance hereditary graphs in [1]. We quote their theorem. Theorem 5. [1] Graph G is distance hereditary if and only if G is HHD, 3-fan free. Since C-free graphs is a proper subclass of distance hereditary graphs containing the graph P as induced subgraph, using Theorem 1, we have an immediate corollary.

Corollary 6. IG satisfies (J3) axiom if and only if G is distance hereditary graph not containing the graph P as induced subgraphs. In the case of distance hereditary graphs, we have that both I and J coincide. But we can easily observe that the class of graphs for which J satisfies axiom (J3) is much larger as the axiom holds for house, hole, and 3-fan. But as an immediate consequence of the Corollary 6, we have the following remark. Remark 7. If G is distance hereditary not containing P as induced subgraph then the induced path transit function JG on a graph G satisfies (J3) axiom. We define a modification of axiom (J20) denoted as (J200) defined as (J200) x ∈ R(u,y),y ∈ R(x,v),x 6= y, |R(x,y)| = |R(y,v)| = 2, u 6= v, R(u,v) 6= {u,v} ⇒ x ∈ R(u,v).

We can easily see that for I, (J3) implies (J200). Conversely, suppose I satisfies (J200), and assume that I does not satisfy axiom (J3). So G contains either house, hole, P , or 3-fan as an induced subgraph by Theorem 1. In these cases it can be shown the existence of distinct vertices u,v,x,y, so that I does not satisfy (J200). Hence we have the following proposition. Proposition 8. Axioms (J200) and (J3) are equivalent for I.

3 Characterization of D-free graphs

In this section we characterize the graphs for which J satisfies the axiom (b4). Recall that J satisfies axioms (b1) and (b2) if and only if G is HHD-free (see [10]). We use this result in the proof of Theorem 2.

8 Proof of Theorem 2. If G contains a house, a hole, a domino, or a 4-fan as an induced subgraph, then there exists u,v,x ∈ V such that x ∈ JG(u,v) and JG(u,x)∩JG(x,v) 6= {x}, see Figure 2. Now suppose that JG does not satisfy (b4). We need to show that there exists at least one of house, hole, domino, or 4-fan in G as an induced subgraph. Suppose that no such induced subgraph exists in G and hence G is also HHD, 4-fan free graph. Since (b4) is not fulfilled, there exists u,v,x ∈ V such that x ∈ JG(u,v) and JG(u,x) ∩ JG(x,v) 6= {x}. Thus there exists y ∈ JG(u,x) ∩ JG(x,v) such that y 6= x. Since G is HHD-free, JG also satisfies (b1) and (b2). Since y ∈ JG(u,x) and x 6= y, (b1) implies that x 6∈ JG(u,y). Similarly x 6∈ JG(y,v) and x 6∈ JG(u,y) ∪ JG(y,v). On the other hand for x ∈ JG(u,v) and y ∈ JG(u,x) axiom (b2) implies that y ∈ JG(u,v). Moreover this still holds if we replace y by any vertex of JG(u,x) and we obtain JG(u,x) ⊆ JG(u,v). By symmetry, we also have JG(x,v) ⊆ JG(u,v) and in particular y ∈ JG(u,v). Let P and Q be u,v-induced paths containing x and y, respectively. If y ∈ V (P ) or x ∈ V (Q), then either x ∈ JG(u,y) or x ∈ JG(y,v) which is not possible. Hence y 6∈ V (P ) and x 6∈ V (Q). Since y ∈ JG(u,x), there exists an u,x-induced path R containing y. We can choose y to be as close as possible to x with respect to the distance on R. First we show Claim. Vertices x and y are non consecutive vertices in a common four cycle. Moreover, the other two vertices of this four cycle are on P .

Suppose first that x and y are adjacent. Since x∈ / JG(u,y), there exists a chord yu1 for some vertex u1 of u,x-subpath of P . We may choose u1 to be the last such vertex before x. Similarly, there exists a chord yv1 for some vertex v1 of x,v-subpath of P . We may choose v1 to be the first such vertex after x. Denote by S the u1,x-subpath 0 0 and by S the v1,x-subpath of P . If S or S have length 3 or more, we have an induced hole by the choice of u1 and v1, respectively, which is not possible. Otherwise {y}∪ S and {y}∪ S0 form induced cycles of length 3 or 4. If both are 4, we have an induced domino, since P is induced and by the choice of u1 and v1, a contradiction. If one has length 3 and the other 4, we have again a contradiction, since there is an induced house. If both have length 3, we have the desired four cycle. Suppose now that x and y are not adjacent. Let x0,...,xk be an x,y-subpath of R. Since x 6∈ JG(u,y) and x 6∈ JG(y,v), there must exists edges xiu1 and xjv1 for some u1 and v1 of u,x- and x,v-subpaths of P , respectively. We can choose i and j to be as small as possible and u1 and v1 closest to x on P . Since we have no holes in G, we have i,j ≤ 2 and also dP (u1,x) ≤ 2 and dP (v1,x) ≤ 2. Without loss of generality, we may assume that i ≤ j ≤ 2. Let first i = j = 1. We have an induced domino, if dP (u1,x)=2= dP (v1,x). Whenever one of dP (u1,x) and dP (v1,x) is 1 and the other is 2, we have an induced house. If dP (u1,x)=1= dP (v1,x), we have a contradiction with the choice of y, since x1 has the same properties as y, but is closer to x. Hence a contradiction in every case. Let now i = 1 and j = 2, which already implies dP (x,v1) = 1. If dP (u1,x) = 1, we have an induced house on vertices {x,v1,x2,x1,u1} if x2u1 is not an edge. If x2u1 is an edge, we have the desired four cycle u1xv1yu1, whenever x2 = y and a contradiction with the choice of y whenever x2 6= y. If dP (u1,x) = 2, also x2u1 ∈ E(G), since otherwise we have an induced domino

9 on vertices x,v1,x2,x1,u1, and a common neighbor of u1 and x on P . But now we have an induced house on vertices {x,v1,x2,x1,u1}. Finally, if i = j = 2, we have the desired four cycle u1xv1x2u1, whenever y = x2, and a contradiction with the choice of y otherwise (x2 can replace y). This conclude the proof of the claim.

We continue with the four cycle Z = u1xv1yu1. The y,x-subpath of R is internally disjoint with both yu1x and yv1x. Let x0,...,xk be the x,y-subpath of R. We will show that there is at most one edge of the form u1xi for some i ∈ {0,...,k − 1}. Let i be the biggest index such that xi is adjacent to u1. Note that xiv1 ∈/ E(G) by the choice of y. The cycle Z1 : xi → R → yu1xi is induced by the choice of i. Thus his length is 3 or 4. If it is 4, then i = k − 2 and xk−1v1 ∈ E(G) otherwise we have a hole on {v1,xk,xk−1,xk−2,xk−3,...}. But now we have an induced house on {v1,xk,xk−1,xk−2,u1}. Hence let the length of Z1 be 3 and i = k − 1. If k > 2, then xk−2v1 ∈ E(G), otherwise we have a hole. By the choice of y, xk−2 is not adjacent to u1 and we have an induced house on {u1,xk,xk−1xk−2,v1}. Thus k ≤ 2. Let u2 be the last vertex common to P and R before x. Paths u2 → P → u1y and u2 → R → y are two internally disjoint u2,y-induced paths (whenever u2y∈ / E(G)). Consider the cycle C : u2 → P → u1y → R → u2 which is not necessarily induced. Let Z2 be an induced cycle that contains y and u1 and one or both their neighbors on C. Clearly the length of Z2 is 3 or 4. By symmetry we can apply the same arguments, since y ∈ JG(x,v) and we obtain 0 0 cycles Z1 and Z2. 0 Let first k = 1. If the length of Z2 or Z2 is 4, we have an induced house on 0 0 0 V (Z1) ∪ V (Z2) or V (Z1) ∪ V (Z2), respectively. Thus both, Z2 and Z2, have length 3 0 0 and we get a 4-fan on V (Z1) ∪ V (Z2) ∪ V (Z1) ∪ V (Z2). Let now k = 2. At most one of u1 and v1 is adjacent to x1. We may assume that 0 0 0 v1x1 ∈/ E(G). Vertices of V (Z1)∪V (Z2) form a domino or a house if the length of Z2 is 4 or 3, respectively. House is induced, while in domino only one chord is possible between 0 x1 and a that is a neighbor of v1 on Z2. In this case vertices {a,v1,x,x1,y,u1} induce a domino if u1x1 ∈/ EG) and vertices {a,v1,x,x1,u1} induce a house if u1x1 ∈ EG), a final contradiction.

4 A characterization of chordal and Ptolemaic graphs

In this section, we characterize the graphs for which J or I satisfy the axiom (J0). We first start with J.

Theorem 9. Let G be a graph. The induced path transit function JG of G satisfies the axiom (J0) if and only if G is a chordal graph.

Proof. It is easy to verify that the induced path transit function JG does not satisfy the axiom (J0) on an induced cycle Cn, n ≥ 4. For this, take u,x,y,v on Cn as follows. Take x and v adjacent to u and let y be any other vertex of Cn. Then it follows that x ∈ JG(u,y) and y ∈ JG(x,v), but x∈ / JG(u,v) as uv is an edge of G. Thus if JG of G satisfies (J0), then G has no induced cycles Cn, n ≥ 4, and is hence chordal.

10 If (J0) is not satisfied for a chordal graph G, then, there exists distinct vertices u,x,y,v in G such that x is on an u,y-induced path P1 and y is on an x,v-induced path P2, but x is not on an u,v-induced path. This implies that there exists a chord from the u,x-subpath of P1 to the y,v-subpath of P2. Let u1v1 be the chord with u1 as the last vertex before x on the u,x-subpath of P1 and v1 the first vertex after y on the y,v-subpath of P2 adjacent to u1. Note that u1 6= x and v1 6= y since P1 and P2, respectively, are induced paths. The cycle formed by path u1 → P1 → x → P2 → v1 and the edge u1v1 is an induced cycle of length at least 4, which is not possible as G is chordal and the proof is completed.

Next we characterize the graphs for which the interval function satisfies the axiom (J0). For this recall that Ptolemaic graphs are exactly chordal graphs that are 3-fan free.

Theorem 10. Let G be a graph. The interval transit function IG satisfies the axiom (J0) if and only if G is a Ptolemaic graph.

Proof. Suppose that G is not a Ptolemaic graph and hence contains an induced cycle Cn, n ≥ 4, or an induced 3-fan. In an induced 3-fan I does not fulfilled (J0) if u,x,y,v are consecutive vertices of P4. Let Cn, n ≥ 4, be an induced cycle of G. If Cn is also an isometric cycle, then (J0) does not hold if vertices u,x,y are consecutive vertices of Cn and v is the antipodal vertex of x when n is even and the antipodal vertex of u and x when n is odd. If G has an induced cycle Cn, which is not isometric, then G has an isometric cycle of length k which is less than n. If k ≥ 4, we are done. Otherwise there exists an induced cycle C` of minimum length, where ` ≥ 6. By the minimality of ` and since C` is not isometric, there exists a wheel with C`. In this case G contains an induced 3-fan since ` ≥ 6. Thus (J0) is satisfied only for chordal graphs without induced 3-fans. Conversely, let G be a chordal graph without an induced 3-fan and suppose that the axiom (J0) is not satisfied for I. There exists distinct vertices u,x,y,v in G, such that x is on an u,y-shortest path P and y is on an x,v-shortest path Q, but x is not on an u,v-shortest path. Let R be a shortest u,v-path that has the most common vertices with P . Let u1 be the last common vertex of P and R. Clearly u1 lie on the u,x-subpath of P , it can be equal to u, but not to x. Let v1 be the first common vertex of R and Q. Clearly v1 lie on the y,v-subpath of Q, it can be equal to v, but not to y. Consider the cycle Z : u1 → P → x → Q → y → Q → v1 → R → u1. The length of Z is at least 4. Since G is chordal, this cycle cannot be induced. Now let us consider the possible chords of Z. Suppose some vertex on u1 → P → x is adjacent 0 to a vertex on y → Q → v1. Let u1 be the last such vertex on u1 → P → x which 00 is adjacent to some vertex on y → Q → v1. Let u1 be the first such vertex. Then 0 00 0 the cycle u1 → P → x → Q → y → Q → u1u1 is an induced cycle of length at least 4, which is a contradiction. So no vertex on u1 → P → x is adjacent to a vertex on y → Q → v1. Now assume that some vertex on u1 → P → x is adjacent to a vertex on 0 u1 → R → v1. Let u1 be the last such vertex on u1 → P → x which is adjacent to a

11 vertex on u1 → R → v1. Let w be the last such vertex on u1 → R → v1. Consider the 0 0 0 0 cycle Z : u1w → R → v1 → Q → y → P → u1. The length of Z is at least 4. Case 1: wv1 ∈ E 0 If a chord between w and any vertex t of u1 → P → x → Q → v1 is missing, then w and t are on some induced cycle of length at least 4, a contradiction. Otherwise we have an induced 3-fan, since there are at least four vertices on v1 → Q → y → P → u1 adjacent to w, which is a contradiction. Case 2:wv1 6∈ E 0 0 Let v1 be the last vertex on v1 → Q → x → P → u1 which is adjacent to some vertex on 00 0 0 0 v1 → R → w. Let v1 be the last such vertex. Then v1 → Q → x → P → u1w → R → v1 is a cycle of length at least 4 which leads to the same contradiction as in Case 1. Otherwise no vertex on u1 → P → x has a chord to any vertex of Z, which yields an induced cycle of length ≥ 4, a final contradiction.

5 Acknowledgments

Work supported by the Ministry of Science of Slovenia and by the Ministry of Science and Technology of India under the bilateral India-Slovenia grants BI-IN/10-12-001 and INT/SLOVENIA-P-17/2009, respectively

References

[1] H.-J. Bandelt, H. M. Mulder, Distance-hereditary graphs, J. Comb. Theory Ser. B 41 (1986) 182–208. 1, 2, 5

[2] A. Brandstädt, V.B. Lee, J.P. Spinrad, Graph Classes - A Survey, SIAM Mono- graphs on Discrete Mathematics and Applications (1999). 1

[3] M. Changat, S. Klavžar, H. M. Mulder, The All-Paths Transit Function of a Graph, Czech. Math. J. 51 (2001) 439–448. 1

[4] M. Changat, J. Mathew, Induced path transit function, monotone and Peano ax- ioms, Discrete Math. 286 (2004) 185–194. 1

[5] M. Changat, J. Mathew, Characterizations of J-monotone graphs, In: Convexity in Discrete Structures (M. Changat, S. Klavžar, H.M. Mulder, A. Vijayakumar, eds.), Lecture Notes Ser. 5, Ramanujan Math. Soc. (2008) 47–55. 1

[6] M. Changat, J. Mathew, H. M. Mulder, Induced path function, monotonicity and betweenness, Discrete Appl. Math. 158 (2010) 426–433. 1

[7] M. Changat, G. N. Prasanth, J. Mathews, Triangle path transit functions, between- ness and pseudo-modular graphs, Discrete Math. 309 (2009) 1575–1583. 1

[8] E. Howorka, A characterization of distance hereditary graphs, Quart. J. Math. Oxford. Ser. 2 28 (1977) 417–420. 1

12 [9] M.A. Morgana, H.M. Mulder, Induced path convexity, betweenness a nd svelte graphs, Discrete Math. 254 (2002) 349–370. 1, 3

[10] H. M. Mulder, The Interval Function of a Graph: Mathematisch Centrum, Ams- terdam, 1980. 1

[11] H. M. Mulder, Transit functions on graphs (and posets). In: Convexity in Discrete Structures (M. Changat, S. Klavžar, H. M. Mulder, A. Vijayakumar, eds.), Lecture Notes Ser. 5, Ramanujan Math. Soc. (2008) 117–130. 1

[12] H. M. Mulder, L. Nebeský, Axiomatic characterization of the interval function of a graph, European J. Combin. 30 (2009) 1172—1185. 1

[13] L. Nebeský, Characterization of the interval function of a connected graph, Czech. Math. Journal. 44 (1994) 173–178. 1

[14] L. Nebeský, A characterization of the interval function of a (finite or infinite) con- nected graph, Czech. Math. J. 51 (2001) 635-–642. 1

[15] L. Nebeský, The induced paths in a connected graph and a ternary relation deter- mined by them, Math. Bohem. 127 (2002) 397—408. 1

[16] M. L. J. van de Vel, Theory of Convex Structures. North Holland, Amsterdam, 1993. 1

[17] H.N. de Ridder et. al, Information System on Graph Classes and their Inclusions (ISGCI), http://www.graphclasses.org 2001-2012 Accessed on 14 February 2012. 1

13