Manuscript Offprint
arXiv:2608.30728On the maximum weight convex problem for some geometric graph-convexities
Abstract
For a given geometric graph-convexity on a graph G equipped with a weight function on the vertices with value in Z, the MAX WEIGHT CONVEX SET problem consists in determining the convex set S with maximum weight (sum of the weight of the vertices in S). Although the problem is NP-complete in general, it remains polynomial for particular cases.
After a survey of known results, our main contribution uses a generalisation of the maximum subsequence problem to laminar trees. Then we derive a linear algorithm for proper interval graphs and a quadratic one for interval graphs. Both improve the state of the art.
1 Introduction to convexity spaces and geometric convexities
Definitions. A convexity space is an ordered pair , where is a non-empty set and is a collection of -subsets, to be regarded as convex sets, such that:
(i) .
(ii) Arbitrary intersections of convex sets are convex.
(iii) Every nested union of convex sets is convex.
Given a convexity space , the convex hull of denoted by is the smallest convex set containing , being the intersection of all the convex sets that contain . Families satisfying (iii) are known as inductive systems. A vertex of a convex set is an extreme point of if is also a convex set.
Introduced first by Edelman and Jamison in 1985 [17], convex geometries appeared in the literature under different names and aspects, the most famous one being antimatroids. The convexity C is a convex geometry if it satisfies the Minkowsky-Krein-Milman property: every convex set is the convex hull of its extreme vertices. Equivalently: a convex geometry is a
An extended abstract [1] of this version was presented in conference COSI, Bejaia, Algeria, 2025 convexity space satisfying the Anti-Exchange Property: for any convex set and two distinct points , implies . Given a convex geometry , then the set system where is an antimatroid. We call the sets feasible sets. In the remainder, we say that a convexity space is geometric if it is a convex geometry.
Following Duchet [15], a graph-convexity space is an ordered pair , formed by a connected graph and a convexity on such that is a convexity space satisfying the additional axiom:
(iv) Every member of C induces a connected subgraph of G.
Antimatroids capture various elimination orderings on graph classes, which are the basis of numerous efficient algorithms. There is a close relationship between convexity spaces and the notion of abstract betweenness defined by Menger [26]. Betweenness is a ternary relation, that relates the “placement” of a point z between two other points a and b. We say z belongs to the interval when z is between a and b. The notion of interval varies with every betweenness. As noticed by Chvátal [10], several abstract betweennesses can be defined on graphs. Given a betweenness relation, one can deduce a graph-convexity space as follows: is convex if and .
As a first example, the set of vertices A is a geodesic convex set if A contains all vertices which belong to shortest paths between vertices in A. Geodesic convexity is geometric for a graph G if and only if (iff) G is a Ptolemaic graph, i.e. chordal and distance hereditary [22].
A well studied antimatroid is the one that rises from chordal graphs, i.e. the graphs where the largest induced cycle is a triangle. Chordal graphs are characterized by a vertex ordering known as a perfect elimination ordering (PEO). An ordering is a PEO for if for all , is simplicial in , meaning the neighbourhood of to its left in induces a clique. Thus is a simplicial vertex in . The set system whose ground set are the vertices of a chordal graph, and its feasible sets are the suffixes of PEOs form an antimatroid [25]. Given such an antimatroid, the corresponding convex geometry is the tuple where is convex if all chordless paths between the vertices in are also in . That is, for all , if lies in a chordless -path in , then . This is known as the monophonic convexity or simply m-convexity. Monophonic convexity yields a convex geometry on a graph iff is weak polarizable (every subgraph is chordal or it has a proper homogeneous set) [14]. Naturally this class of graphs contains all chordal graphs.
Another well studied antimatroid is the double shelling antimatroid of posets. Let be a poset. The double shelling antimatroid on is the set system whose feasible sets are unions of ideals and filters of . The corresponding convex geometry is a set system , where a set is convex if for all , every that satisfies or is also in . For a more comprehensive survey on this topic, we refer the reader to the monograph Greedoids by Korte, Lovász, and Schrader [25], and to [20, 15] for more on graph convexities.
As considered by Chvatal [10], many other discrete convexities in graphs can be defined via intervals. As an example, let us mention the convexity in which an induced path of length from to . If is HDD-free (House, Domino, Diamond), then the -convexity is a convex geometry [20].
Furthermore, the 2-paths-convexity, used for the study of cocomparability graphs (i.e. complement of comparability graphs) and asteroidal triple free graphs (AT-free graphs for short) is defined for the following notion of interval: . If is a cocomparability graph, the 2-paths convexity is geometric.
Following [24], a convexity space is said to have Carathéodory number iff is the smallest positive integer with the following property: if a point lies in the convex hull of a set , then it lies in the convex hull of a subset such that .
Problem studied. In this paper, we mainly deal with discrete convex geometry on which we consider the simple optimization problem proposed below. It has applications to polytopes [2, 13] and has already gave rise to very nice combinatorial algorithms. We will consider some of them here.
Name : MAX WEIGHT CONVEX SET
Data: ground set V, equipped with a weight function and a discrete convex geometry on V.
Result: a -convex set in with maximum weight: .
It should be noted that the weight of the empty set is 0, which could be the optimum if for every vertex , .
Unfortunately, this problem is NP-hard in general using an easy reduction from INDEPENDENT SET [19]. Therefore it is very interesting to consider graph classes on which this problem can be solved efficiently. If a graph G admits several connected components for every graph convexity , one can consider the problem on each connected component and the value for G is simply the maximum of the computations. Therefore in what follows all our graphs are supposed to be connected.
The difficulty of the problem comes from the closure operation associated with C. Suppose we have a subset with a very positive weight, to go from A to conv(A) we could be forced to add vertices with negative weights. Another difficulty comes from the number of convex sets to be considered. In some graph classes, a given graph G may admit an exponential number of convex sets.
Known algorithms. We focus now on efficient algorithms for some classes of graphs such as split graphs, threshold graphs, proper interval graphs and interval graphs and improve the known algorithms. The MAX WEIGHT CONVEX SET problem has been considered for arrays under the name MAXIMUM SUM SUBSEQUENCE also called MAXIMUM SUBVECTOR PROBLEM. A nice linear time algorithm is proposed in [4]. In this case the convex sets are just the contiguous subsequences. More algorithms have been proposed for other cases, as listed below.
-
For trees with geodesic convexity, the problem can be solved in using dynamic programming [19], improved to in [8]. In this case the geodesic convex sets are just the subtrees. We wonder if a linear time algorithm could be obtained.
-
For partial orders when convex sets are just intervals of the partial order, the problem can easily be solved in quadratic time. But when convex sets are the ideals of the partial orders then one can use a reduction to maximum flow problems [29]. This gives formally: for a poset , and a weight function finding an ideal of that minimizes can be done in time, where is the number of cover relations in . But several linear time algorithms already exist for computing a maximum flow in graphs [9] and therefore a linear running time can be proposed.
• Polynomial-time can be achieved for some well-structured graph classes such as split and chordal graphs [28, 6, 7, 27]. For chordal graphs they use a data structure, namely the "Clique-Separator Graph" introduced in [23] and then apply the partial order algorithm. The bottleneck of this approach is given by construction of the data structure in . With the same remark as above for maximum flow the complexities of their algorithms can be improved.
- On equipped with its usual convex geometry, the problem is polynomial for and NP-hard for [2].
Observe that a closely related problem has been intensively studied, namely the MAXIMUM-WEIGHT CONNECTED SUBGRAPH, see for example [18]. This generalization is NP-hard and furthermore not related to convexity since the intersection of two connected subgraphs of a given graph is not necessarily connected.
Summary. The following table summarizes both the literature and our results about the complexity of computing the maximum-weight convex set when a graph with and . For each class of graphs tackled, we focus on the natural convex geometry associated with its structure (details are given in each section). We also mention the case of trees which stand in our opinion as an important challenge for future research.
3 Maximum sequences of leaves in a laminar tree
Let us now introduce a tool, namely laminar trees which will be very useful for our algorithms on MAX WEIGHT CONVEX SET for well-structured classes of graphs. A natural generalization of the MAXIMUM SUM SUBSEQUENCE problem in an array is to consider a similar problem on laminar trees.
| Graph classes / Discrete structures | Known results | Our results |
|---|---|---|
| Trees | [8] | |
| PQ-Trees | Th. 1 | |
| Chordal graphs | [7] | |
| Proper interval graphs | Th. 3 | |
| Interval graphs | Th. 4 | |
| Threshold graphs | Th. 5 |
Table 1: MAX WEIGHT CONVEX SET on different structures.
3.1 Laminar families and trees
As defined in [30], a laminar family on a ground set is a subset such that for all , either or or . Observe a laminar family on is naturally represented by a rooted forest, denoted and called -laminar forest, such that every set admits a representative node in . The leaves of the subtree rooted at provides us with the content of set . Note that if , then is a rooted tree. More generally, when is connected, we say that it is a laminar tree.
Given a planar embedding of a laminar tree with leaves at the bottom, i.e. a representation, the left-right reading of the leaves of gives a total ordering of . In order to manipulate sets of representations of a laminar tree in a compact way, let us first introduce these simple types on the internal nodes of typed-laminar trees.
-
P-node, for parallel. Any ordering of the children of a P-node is valid.
-
Q-node. Only one ordering of the children and the reverse one are valid.
-
R-node for rigid (uniquely ordered). A unique ordering of the children of a R-node is valid.
-
C-node for circular. Given a total order of the children of a C-node, any cyclic ordering of is valid.
A typed-laminar tree provides a succint encoding of a set of planar representations of the associated tree, in fact a set of permutations of its leaves, i.e. set . A set of leaves of a typed-laminar tree is said convex if the element of are contiguous in some valid representation of . Now we consider a weight function on and ask the maximal convex set in .
Name : MAX WEIGHT LAMINAR CONVEX SET
Data: A typed-laminar tree on ground set , equipped with a weight function on its leaves .
Result: a sequence of contiguous leaves in a valid planar representation of with maximum weight.
Observe that if all nodes of the typed-laminar tree are typed R, then we are back to the MAXIMUM SUM SUBSEQUENCE problem. Our generalization contains the well-known PQ-trees used for interval graphs [5] and also the PC-trees used for planarity and circular-arc graphs recognition [31]. Let us consider the following first case as an appetizer.
Proposition 1. There exists a linear time algorithm solving MAX WEIGHT LAMINAR CONVEX SET on typed-laminar trees with height 1.
Proof. If the type of the unique internal node is P for parallel, then the solution is just the sum of the elements with positive weight.
For R and Q-nodes, we are back to the MAXIMUM SUM SUBSEQUENCE problem already mentioned. Whence we can use a nice one-sweep linear time algorithm.
For a C-node (circular) we generalize the linear time algorithm for MAXIMUM SUM SUB-SEQUENCE as follows. Let us denote the elements of the circular node by . The idea is to double these elements in an array of size containing . While exploring this array, we maintain two variables and which contain respectively the maximum-weighted contiguous subset of size the explored area and the maximum-weighted contiguous subset of size finishing at the current element. In particular, at each iteration, consists in selecting the best option between and the set computed at the last iteration. Variables , simply store respectively the cardinality of sets , .
Input: an array with 2n elements Output: Values , and corresponding convex sets
1 ; ; 2 For to 2n do 3 If then else 4 update ; 5 ; 6 update ;
Algorithm 1: For one internal circular node
After the execution of this Algorithm 1, the set contains a subsequence of maximum weight among all subsequences of size . With both extremities of we can adjust the initial data to find the best circular permutation. The time complexity of this dynamic programmatic procedure depends linearly on the size of array .
3.2 PQ-trees
PQ-trees are well-known typed-laminar trees with only two types of nodes P and Q. A PQ-tree is a data structure introduced by Booth and Lueker [5]. PQ-trees can be used to represent the permutations of a set U in which various subsets of U occur consecutively. Efficient algorithms using PQ-trees are given in [5] for recognizing interval graphs and testing graph planarity. They are used for representing many combinatorial families as evoked in [12].
Let be a weight function associating an integer with each leaf of some PQ-tree . The objective is to identify the PQ-convex set which maximizes .
Name : MAX WEIGHT PQ-CONVEX SET
Data: PQ-tree T with n leaves , a weight function .
Result: The PQ-convex set S which maximizes .
Let be the set of leaves of , its inner nodes are either P-nodes or Q-nodes. The frontier from the PQ-tree is the permutation of which is given by the ordering of the leaves of from left to right. A PQ-tree is equivalent to ( ) if we can transform the frontier of and obtain by applying the following rules: (i) permute arbitrarily the children of a P-node and (ii) reverse or not the ordering of the children of a Q-node. A PQ-convex set is a set of leaves which can be defined with an equivalent PQ-tree and two leaves , : contains and and all leaves that are between and in permutation . Moreover, any singleton of is also considered as a PQ-convex.
We propose a natural dynamic programming scheme to handle this problem in quadratic time.
Theorem 1. The maximum-weight PQ-convex set can be computed in on a PQ-tree with n vertices.
Proof. Using PQ-trees we propose an algorithm solving the problem in . We proceed inductively. We initialize four variables for each vertex of T, that we update while we go up in the tree. Concretely, each variable is a function over PQ-trees and each variable for v must be understood as the value of this function applied on the subtree rooted in v. Given some vertex v, by induction hypothesis, we will assume the variables have been computed for all subtrees rooted in the children of v and then show how to compute these variables for v. Variables for leaves can be computed trivially.
Variables. First, we define formally the four variables for some PQ-tree T.
-
: maximum weight of a PQ-convex which is a prefix of some permutation , . The associated PQ-convex set is denoted by .
-
: maximum weight of a PQ-convex which is a suffix of some permutation , . The associated PQ-convex set is denoted by .
-
: maximum weight of a PQ-convex of . The associated PQ-convex set is denoted by .
-
total(T) : the sum of the weight of all leaves in T. Formally, total(T) = .
In brief, set corresponds to the result we are looking for, if T is the input PQ-tree.
Base case: Suppose the tree is made up of a single node . If , we fix all variables with value and also .
Otherwise, we fix total(T) = but all other variables equal to 0. Furthermore, .
Induction step: We distinguish two cases: the current root v is either a P-node or a Q-node.
• P-node. We suppose that the root of T is a P-node and the variables of the subtrees below this root have been computed. Let us denote these PQ-trees by . Algorithm 2 shows the procedure to determine the variables of T when the root is a P-node. Below we give both a description and a justification of this algorithm.
The computation of total(T) is trivial: total(T)= total(A_i). The same formulation holds if the root is a Q-node.
For the computation of , we distinguish two cases. First suppose that only contains elements of sets satisfying total( ) > 0. In this case, , which is the maximum-weighted convex set which must appear on the left of the permutation, is necessarily made up of the concatenation of all sets with total( ) > 0 with a last one . Indeed, the positivity of all total( ) makes our weight increase and is a maximum-weighted convex suffix. The set which must be selected is the maximum over , otherwise it could be replaced by the maximum-weighted convex suffix of another set. In brief, we select the set maximizing such that total( ) > 0, and we have:
Second, we consider the case where there can be some elements of in such that . There cannot be two sets like that, otherwise one of them is included entirely in and this is a contradiction as it makes the total weight decrease. So only one of these sets exists and it will be the rightmost one among the convex set: we denote it by . All sets with have to be added to the PQ-convex to maximize its weight. In this case, is the union of the maximum-weighted , where , with all sets satisfying .
Eventually, it suffices to compare the values obtained in both cases (Equations (1) and (2)) and take the maximum. The execution time for this procedure is linear in k. This is described in line 10 of Algorithm 2. Note that the computation of is symmetric and can be deduced from the rules presented for .
For the computation of , we distinguish two cases. First, suppose that the elements of come from a single set then,
Second, suppose that the elements of come from at least two sets. Using similar arguments as , we can show that the PQ-convex is the union of: a set

Figure 1: Possible structure of a convex set (colored leaves) below a P-node
which is on the right of the PQ-convex set (in other words, a suffix), a set which is on the left of the PQ-convex set (a prefix), and all other sets which satisfies total( . This scenario is depicted in Figure 1.
In this case the idea is to find the pair which maximizes the weight of the PQ-convex. We can achieve this operation in time :
-
compute the collection of sets which verify total( ) 0 and determine the sum of their total weights (linear time)
-
enumerate all possible pairs (quadratic time) and compute the weight of the convex set obtained for this pair suffix-prefix. Deduce the value of the middle sets by reducing from , if necessary, the weights of and (if their total is positive).
Eventually we compare the maximum values obtained in both cases (Equations (3) and (4)) and take the overall maximum. This is described in lines 17-22 of Algorithm 2. This process can be achieved in quadratic time.
• Q-node. We suppose now that the root of T is a Q-node and the variables of the subtrees below this root have been computed.
For the computation of , we distinguish two cases. Indeed set appears left when the ordering is either or . First, we begin with the increasing order . Let the rightmost set that contains elements of . Then we have,
Input: A PQ-tree with root P and subtrees
Output: Values and corresponding convex sets
1 ;
2 ;
3 ;
4 ;
5 ;
6 ;
Computation of
7 ;
Computation of and
8 ; ;
9 ; ;
10 ; ;
11 If then
12 ;
else
13 ;
14 If then
15 ;
else
16 ;
Computation of
17
18 ;
19 If then
20 ;
21 ;
else
22
Algorithm 2: Computation of the variables when the root is a P-node
With this ordering, value is thus obtained by listing all and determining the one which maximizes the right-hand side of Equation (5). Second with the decreasing order , set is the union of set with all sets , where .
Eventually, we compute the maximum of the two values obtained for each case and obtain . This operation takes since we need to explore all sets and update the total weight of all other members of the convex set increasingly. Computing is symmetric.
For the computation of , we distinguish three cases. First, if the elements of are all contained in some set , then . Second, suppose that contains elements of at least two sets and that this PQ-convex appears when the subtrees are in ascending order . Let the leftmost subtree having a nonempty intersection with , the rightmost. Value can be thus written:
Observe that this operation can be naturally achieved in time , by enumerating all possible prefix , then by increasing parameter one by one, and updating the total of middle sets while adding to it value . At the end, we return the maximum value obtained for the weight of a convex set. Note that it could certainly be improved to a linear running time by using dynamic programming, but since quadratic time was already needed for a previous case, we keep this algorithmic version.
Finally, the third case is when contains elements of several sets and appears with the subtrees in the decreasing order . Let the leftmost subtree sharing elements with , the rightmost.
The processing time to achieve this computation is identical to the one for the ascending order. In summary, to obtain , we determine the maximum of the three cases. The overall running time is thus .
In summary, the time needed to determine the four variables for each subtree T rooted in v is , where k is the number of children of v. In summary, the time needed for the whole recursion process is thus . Since vertices with one child do not provide any particular information, we can restrict ourselves to irreducible trees where the number of leaves is linear in n.
There is no doubt, in our opinion, that such a dynamic programming algorithm can be adapted to other types of nodes, as C and R. However, since the case of PQ-trees is the most crucial for applications, we do not focus on such technical details for other kinds of typed-laminar trees.
4 Interval graphs
A graph is an interval graph iff it models a set of intervals on the real line such that two vertices are adjacent iff the corresponding intervals have a non empty intersection.
Hajos [21] was the first one to mention these graphs in the literature. Interval graphs are related to problems in biology, psychology and traffic light sequencing. For interval graphs, the natural graph-convexity space to consider is the monophonic convexity since they are chordal. If an interval representation of the graph is given, a simple scan with a sweep line allows to compute the maximum-weight convex set which is an interval of this representation. In fact the problem is reduced to the MAXIMUM SUM SUBSEQUENCE problem already discussed. Otherwise, we need to deal with PQ-trees a structure that allows to generate all interval representations. It is well-known that for every interval graph G, one can compute a PQ-tree whose leaves are in bijection with the maximal cliques of G with only two types of internal nodes P, Q. Hence, we are going to transform our graph problem into a problem on PQ-trees.
Using results in [3], we will prove that a given interval convexity is a convex geometry.
Definition 1 (Interval convexity space [3]). Given an interval space , the interval convexity induced by on is defined as follows: a subset is interval convex if for all . An interval space is called geometric interval if the operator is geometric.
Chvátal proposed an interesting property on interval spaces .
Property 1 (Strong Chvátal Property). For all and and , it holds that or .
The Chvátal Property is very useful in the study of interval convexities.
Definition 2 (Interception convexity). Let be a graph and . We say that is in the interception interval of and , denoted as iff there exists vertices such that and are in different connected components of , where (resp. ) is in the same component as (resp. ). We call the witness of and the witness of with regard to . The interval convexity induced by this operator is called the interception convexity.
Lemma 1 ([3]). Let be a graph and let be its interception convexity. If , then intercepts the interior of any path between and .
The interception convexity implies a linear vertex ordering of a graph.
Definition 3 (Interception convexity order). Let be a connected graph and let be a linear order of its vertices. We say that is an interception convexity order if is an interception convex set for every .
Theorem 2 ([3]). For any graph the following properties are equivalent:
-
The interception interval operator of G fulfils the Strong Chvátal Property;
-
The interception convexity of G is a convex geometry;
-
G possesses a interception-convexity order.
This leads to the following proposition.
Proposition 2. Every convex set of an interval graph G can be associated to an interval in some interval representation of G.
Proof. Let be an interval graph, a subset of and . As is a superset of , it is a superset of : let us prove that is a convex set. Consider an arbitrary such that for some , we are going to prove that .
Case 1: , in this case , by definition of .
Case 2: . By definition of there are with , if we refer to Theorem 2, by Chvátal property with , we have or then .
Case 3: . There are , or then we are back in case 2.
In other words the above Proposition 2 yields that the m-convexity has Carathéodory number 2 for interval graphs.
Lemma 2. Let be a module of and be a geodesic convex set (resp. -convex, -convex) set. If for two non adjacent vertices , there exists that belongs to , then every vertex of belongs to .
Proof. Let us consider the m-convexity case and suppose there exists a chordless path in : with and . First we notice that , else would not be chordless. Using the module definition for every there exists a chordless path in : and therefore . The proof is similar for the two other convexities.
Corollary 1. For a module M in G, in order to compute the intervals with , in geodesic convexity space (resp. m-convexity, -convexity), it suffices to compute them in a graph obtained by contracting M into a single vertex M with weight equal to the sum of the weights of the vertices of M.
Any legitimate plane drawing of the PQ-tree T of an interval graph G yields an ordering of the maximal cliques in which the cliques which contain a given vertex are consecutive. Legitimate here means that for a Q-node only two dual orders of its children are allowed, and for a P-node every order of its children are possible. Such a total ordering of the maximal cliques yields an interval representation as follows: to each vertex of G we associate the unique interval of the cliques that contain it. So T is a short description of all interval representations of G.
Theorem 3. The maximum convex set problem can be solved in linear time for proper interval graphs.
Proof. For a prime proper interval graph, there is a unique interval representation. It is well-known that for a proper interval graph, the only possible modules are sets of true twins. Using Lemma2 and its corollary we can represent all the interval representation using a typed-laminar tree of height 2. The root is a Q-node and if there exist some sets of true twins we add a level of P-nodes.
Whence the maximum convex set can be computed in linear time in such a laminar tree.
Theorem 4. The maximum convex set problem can be solved in for interval graphs.
Proof. Let us consider an interval graph G. First compute the PQ-tree of G which leaves are in bijection with the maximal cliques of G, which can be done in linear time [5]. As explained in [12] we can derive from this tree in linear time its modular decomposition tree. With these two trees we can build a typed-laminar tree on .
Q-nodes (resp. P-nodes) of the PQ-tree correspond to prime nodes (resp. to series or parallel nodes) in the modular decomposition tree. As interval graphs Prime nodes have only one interval representation and its dual. Therefore for each prime node we keep the ordering of its children via the Q-node.
This gives a typed-laminar tree with two types of Q (or prime) nodes and P nodes and the leaves are in bijection with . Furthermore this tree encodes all interval representations of G. To finish the proof we use Proposition 2 and Theorem 1 to obtain an algorithm.
5 Split and threshold graphs
A graph is a split graph if the vertex set can be partitioned into two parts such that is a complete graph and is an independent set. Between and we can have any bipartite graph. A convex set in is therefore a pair with and and closed under the monophonic convexity.
Let us mention some simplifications rules on our problem. Every vertex in I is a simplicial vertex of G so it is an extreme vertex for the monophonic convexity, therefore:
Fact 1: For the computation of the maximum convex set in G, we can only keep the vertices in I with positive weight.
Similarly we can reduce the independent twins, i.e. that have exactly the same neighbourhood in K.
Fact 2: let be two positive twins in , for the computation of the maximum convex set in , we can replace these 2 vertices by a unique one denoted by with .
Furthermore, since any subset of K is a convex set, the subset of all positive vertices of K yields a bound to the maximum weighted convex set in G.
Lemma 3. Let , then .
We refer to the implicit representation of a split graph as the bipartite graph between K and I. From now on, let m denote the number of edges of the implicit representation of G.
A particular case of split graphs are the threshold graphs for which the bipartite between K and I does not contain any pair of independent edges . In other words the neighbourhoods of the independent vertices are totally ordered. We will now show that a linear time algorithm for this particular class of split graphs can be obtained.
We order as such that .
Theorem 5. Algorithm 3 computes the maximum weight of a convex set in G in .
Proof. The easy part is the complexity evaluation since every independent vertex is considered only once so as its neighbourhood, so in the whole . Furthermore the initialization lines before the For loop are in . Let us now consider the proof of correctness. First we notice that W is the sum of the weight of the independent up to j. Similarly is the sum of the positive weights in . Every value considered in the above algorithm and
Input: A threshold graph given by its implicit representation and with its independent vertices totally ordered by inclusion of their neighbourhoods. Output: The value of a maximum convex set in G. begin For to p do
Algorithm 3: Maximum weight convex set for threshold graphs
compared to corresponds to the weight of some convex set in G. The only thing to prove is that we do not miss any convex set during the algorithm.
Let S be a convex set in G. If S does not contain any independent vertex, then S has been considered during the initialization instructions.
Else let be the maximal index with respect to the ordering of the independent vertices present in . If is the only one in then the weight of has been considered in the second term of the max instruction with . Else necessarily and has been considered in the third term of the max instruction with .
Of course the above algorithm only computes the value of a maximum weight of a convex set, but an easy modification can keep track of the convex set when the value is modified. This can be done within the same complexity.
6 Perspectives
Our immediate perspective is to improve the algorithms for the known polynomial cases, as for example for splits graphs, chordal graphs and Ptolemaic graphs. PCR trees were used for planarity testing and circular arc graphs recognition, could we generalize our work for MAX WEIGHT CONVEX SET on these classes of graphs? Next is the question of NP-completeness border: Is MAX WEIGHT CONVEX SET polynomial for cocomparability graphs and AT-free graphs on their respective convexities? It should be the case for cocomparability graphs which are very closed to interval graphs, as explained in [16], but not so clear for AT-free graphs [11]. Similarly, it could be very interesting to characterize the interval graph-convexities that behave nicely with modules as in Lemma 2.
A more fundamental question arises from Carathéodory numbers. One may conjecture that for a geometric convexity with bounded Carathéodory number, MAX WEIGHT CONVEX SET is polynomial. Unfortunately it is false using Carathéodory theorem (1907) bounding this number for geometric convexity in by . As we already mentioned it, MAX WEIGHT CONVEX SET is NP-hard for . Hence, we wonder what further properties on geometric convexities could ensure polynomiality.
Acknowledgments
This work was supported by the ANR (Agence Nationale de la Recherche) research project SPAWN (ANR-25-CE48-1750).
References
[1] 17th Conference, COSI 2025, Bejaia, Algeria, June 1–3, 2025, Proceedings. Optimization and Information Systems. Springer Cham, 2026.
[2] Mohammad Ali Abam, Ali Mohammad Lavasani, and Denis Pankratov. Maximum weight convex polytope. arXiv preprint arXiv:2207.12915, 2022.
[3] Jesse Beisegel. Convexity in Graphs: vertex order characterization and graph searching. PhD thesis, Technischen Universität Cottbus, 2019.
[4] Jon Bentley. Programming Pearls, Second Edition. Addison-Welsey, 2000.
[5] Kellogg S. Booth and George S. Lueker. Testing for the consecutive ones property, interval graphs, and graph planarity using PQ-tree algorithms. J. Comput. Syst. Sci., 13(3):335–379, 1976.
[6] Jean Cardinal, Jean-Paul Doignon, and Keno Merckx. On the shelling antimatroids of split graphs. Discret. Math. Theor. Comput. Sci., 19(1), 2017.
[7] Jean Cardinal, Jean-Paul Doignon, and Keno Merckx. Finding a maximum-weight convex set in a chordal graph. J. Graph Algorithms Appl., 23(2):167–190, 2019.
[8] Josiah Carlson and David Eppstein. Procs. of SWAT. volume 4059 of Lecture Notes in Computer Science, pages 400–410. Springer, 2006.
[9] Li Chen, Rasmus Kyng, Yang P. Liu, Richard Peng, Maximilian Probst Gutenberg, and Sushant Sachdeva. Maximum flow and minimum-cost flow in almost-linear time, 2022.
[10] V. Chvátal. Antimatroids, betweenness, convexity. In Research Trends in Combinatorial Optimization, pages 57–64, 2008.
[11] D. Corneil, S. Olariu, and L. Stewart. Asteroidal triple-free graphs. SIAM J. D.M., 10(3):399–430, 1997.
[12] Christophe Crespelle. Représentations dynamiques de graphes. (Dynamic Graph Representations). PhD thesis, Montpellier 2 University, France, 2007.
[13] Jean-Paul Doignon. A convex polytope and an antimatroid for any given, finite group. Electron. Notes Discret. Math., 54:21–25, 2016.
[14] Feodor F. Dragan, Falk Nicolai, and Andreas Brandstädt. Convexity and hhd-free graphs. SIAM J. Discret. Math., 12(1):119–135, 1999.
[15] P. Duchet. Convex sets in graphs, II. minimal path convexity. J. Combinatorial Theory B, 44(3):307–316, 1988.
[16] Jérémie Dusart, Michel Habib, and Derek G. Corneil. Maximal cliques lattices structures for cocomparability graphs with algorithmic applications. Order, 41(1):99–133, 2024.
[17] P. Edelman and R. Jamison. The theory of convex geometries. Geometriae dedicata, 19(3):247–270, 1985.
[18] Mohammed El-Kebir and Gunnar W. Klau. Solving the maximum-weight connected subgraph problem to optimality. CoRR, abs/1409.5308, 2014.
[19] David Eppstein, Mark Overmars, Günter Rote, and Gerhard Woeginger. Finding minimum area k-gons. Discrete & Computational Geometry, 7:45–58, 1992.
[20] M. Farber and R. E. Jamison. On local convexity in graphs. Disc. Math., 66(3):231–247, 1987.
[21] G. Hajos. Über eine Art von Graphen. Internationale Math. Nachrichten, 11, 1957.
[22] Edward Howorka. A characterization of ptolemaic graphs. J. Graph Theory, 5(3):323–331, 1981.
[23] Louis Ibarra. The clique-separator graph for chordal graphs. Discrete Applied Mathematics, 157(8):1737–1749, 2009.
[24] D.C. Kay and E.W. Womble. Axiomatic convexity theory and relationships between the Carathéodory, Helly, and Radon numbers. Pacific Journal of Mathematic, 38:471–485, 1971.
[25] B. Korte, L. Lovász, and R. Schrader. Greedoids, volume 4. Springer, 2012.
[26] K. Menger. Untersuchungen über allgemeine metrik. Mathematische Annalen, 100(1):75–163, 1928.
[27] Keno Merckx. Optimization and Realizability Problems for Convex Geometries. PhD thesis, University of Louvain ULB, 2019.
[28] Keno Merckx, Jean Cardinal, and Jean-Paul Doignon. On the shelling antimatroids of split graphs. Electron. Notes Discret. Math., 55:199–202, 2016.
[29] J.-C. Picard. Maximal closure of a graph and applications to combinatorial problems. Management Science, 22(11):1268–1272, 1975.
[30] Alexander Schrijver. Combinatorial Optimization. Algorithms and Combinatorics vol. 24. Springer-verlag, 2002.
[31] Wei-Kuan Shih and Wen-Lian Hsu. A new planarity test. Theoretical Computer Science, 223(1):179–192, 1999.