Professional Documents
Culture Documents
All-Path Convexity: Combinatorial and Complexity Aspects
All-Path Convexity: Combinatorial and Complexity Aspects
complexity aspects
Fábio Protti1
Instituto de Computação - Universidade Federal Fluminense - Brazil
E-mail: fabio@ic.uff.br
João V. C. Thompson
Centro Federal de Educação Tecnológica Celso Suckow da Fonseca
CEFET/RJ - Campus Petrópolis - Brazil
E-mail: joao.thompson@cefet-rj.br
1 Introduction
Let G = (V, E) be a simple, finite, nonempty, and connected graph, and
let C be a collection of subsets of V . We say that (V, C) is a (finite) graph
convexity space if: (a) ∅ ∈ C; (b) V ∈ C; (c) C is closed under intersections.
In many studies, the collection C is determined as follows. Let P be any
collection of paths of a graph G, and, for S ⊆ V , define
I(S) = S ∪ {v | v lies in a path of P with endpoints in S}.
Define C ⊆ 2V as the collection of fixed points of the function I, that is,
C = {S ⊆ V | I(S) = S}. Then (V, C) is easily seen to be a graph convexity
space, generally called a “path convexity”. In particular, if P contains
precisely all the shortest paths of G then the corresponding convexity space
is the well-known geodesic convexity with respect to G [18, 19, 22]; if P
is the collection of induced paths of G then the corresponding convexity
space is the monophonic convexity with respect to G [12, 15]; and there are
in the literature many other examples described below, where in each case
we indicate which collection P of paths of G is considered:
1 Partially supported by CNPq and FAPERJ, Brazilian Research Agencies
– g 3 -convexity [23]: shortest paths of length at least three;
– m3 -convexity [3, 14]: induced paths of length at least three;
– gk -convexity [16]: shortest paths of length at most k;
– P3 -convexity [4, 13, 24]: paths of length two;
– P3∗ -convexity [1]: induced paths of length two;
– triangle-path convexity [6, 7]: paths allowing only triangular chords;
– total convexity [11]: paths allowing only non-triangular chords;
– detour convexity [8, 9, 10]: longest paths.
In this work, we study the all-path convexity, which is associated with
the collection P of all the paths of G [5, 17, 25]. Our study is concen-
trated in solving the most important problems in graph convexity for the
specific case of the all-path convexity, including the determination of some
well-known graph convexity parameters, such as the convexity number, the
interval number, and the hull number of G. The remainder of this work is
organized as follows. In Section 2 we provide some necessary background.
In Section 3 we present the main results of this work. Finally, Section 4
contains our concluding remarks.
2 Preliminaries
In this work, G = (V, E) is always a finite, simple, nonempty, and connected
graph with n vertices and m edges. Let P be a collection of paths of G,
and let IP : 2V → 2V be a function (interval function) associated with P
in the following way:
– Convex Set
Input: A graph G and a set S ⊆ V .
Question: Is S convex?
– Interval Determination
Input: A graph G and a set S ⊆ V .
Goal: Determine I(S).
– Convex Hull Determination
Input: A graph G.
Goal: Determine H(S).
– Convexity Number
Input: A graph G.
Goal: Determine c(G).
– Interval Number
Input: A graph G.
Goal: Determine i(G).
– Hull Number
Input: A graph G.
Goal: Determine h(G).
– Geodetic Iteration Number
Input: A graph G.
Goal: Determine gin(G).
3 Main results
In this section we present the solution of the problems stated in the pre-
ceding section for the case of the all-path convexity. For X, Y ⊆ V , denote
N (X, Y ) = {v ∈ Y | v is a neighbor of some x ∈ X}.
Theorem 2. Let S ⊆ V . Then S is convex in the all-path convexity if and
only if either S = V or for every connected component Gi of G − S it holds
that
|N (V (Gi ), S)| = 1.
Proof. Suppose that S is convex and S 6= V , and let Gi be a connected
component of G − S. If |N (V (Gi ), S)| ≥ 2 then there are distinct v, w ∈ S
with neighbors v 0 , w0 ∈ V (Gi ) (not necessarily distinct). Let P 0 = v 0 . . . w0
be a path from v 0 to w0 in Gi (such a path exists because Gi is connected).
Occasionally, P 0 consists of a single vertex v 0 = w0 . Now, let P be the
path vP 0 w = vv 0 . . . w0 w. This means that v 0 (or w0 ) lies in a path with
endpoints in S, that is, v 0 ∈ I(S). Since v 0 ∈ / S, this implies I(S) 6= S, a
contradiction to the assumption that S is convex.
Conversely, suppose that S 6= V and |N (V (Gi ), S)| = 1 for every con-
nected component of G − S. Assume by contradiction that S is not convex.
Then, from the definition of convex set, there is a path P = v1 v2 . . . vk with
(distinct) endpoints in S that contains vertices outside S. Let j be the min-
imum index for which vj ∈ S and vj+1 6∈ S, and assume that vj+1 ∈ V (Gi ).
Since the Gi ’s are mutually isolated (i.e., there is no edge in E joining a ver-
tex in Gi to a vertex in Gk for i 6= k), let l be the minimum index for which
l > j and vl ∈ S (in other words, after visiting Gi , the path P must return
to S before visiting another component Gk ). Thus vj , vl ∈ N (V (Gi ), S).
But j 6= l, because P is a path. Then |N (V (Gi ), S)| ≥ 2, a contradiction.
Therefore, S is convex.
Corollary 3. Convex Set can be solved in O(n+m) time for the all-path
convexity.
Proof. If S 6= V , computing the connected components of G−S can be eas-
ily done in O(n+m) time. In addition, checking whether |N (V (Gi ), S)| = 1
for every connected component Gi of G − S can also be done in O(n + m)
time. Thus, the corollary follows.
Now we deal with the Interval Determination problem. Consider
the block decomposition of G represented by a block-cut tree TG , where
each vertex of TG is associated with either a block Bj (a cut edge or a
maximal 2-connected subgraph of G) or a cut vertex zi ∈ V , and there
is an edge linking a vertex Bj and a vertex zi in TG whenever block Bj
contains the cut vertex zi ∈ V . This definition implies that the vertices
of TG associated with blocks of G form an independent set, and the same
occurs for the vertices of TG associated with cut vertices of G. In addition,
every leaf of TG represent a block of G. An end block of G is a block
associated with a leaf of TG .
For a set S ⊆ V , let TS be the maximal subtree of TG such that every
leaf of TS is associated with a block of G containing a vertex of S that is
not a cut vertex in the subgraph GS induced by ∪Bj ∈V (TS ) Bj . Figure 1
shows an example.
i j k
a a e v y
l
b f w
u
c d g x z
(a)
B5 B5
l l
B1 b B3 f B4 w B7 B3 f B4
B2 B6
(b) (c)
1, if |V | = 2 or G is 2-connected;
c(G) =
n − b(G) + 1, otherwise.
4 Concluding remarks
In this work we showed that the problems Convex Set, Interval De-
termination, Convex Hull Determination, Convexity Number,
Interval Number, and Hull Number can all be solved in O(n + m)
time for the all-path convexity, whereas Geodetic Iteration Number
can be solved in O(1) time (all graphs are interval monotone with respect
to the all-path convexity). The arguments used to solve such problems are
based on the block decomposition and the block-cut tree of the graph.
References
[1] R. T. Araujo, R. M. Sampaio, and J. L. Szwarcfiter. The convexity of
induced paths of order three. Discrete Mathematics 44 (2013) 109–114.
[2] J. A. Bondy and U. S. R. Murty. Graph Theory. Springer, 2008.