---
title: Directed Convex Subgraphs
url: https://www.emergentmind.com/topics/directed-convex-subgraphs
type: topic
---

# Directed Convex Subgraphs

Directed convex subgraphs are induced subdigraphs whose vertex sets are closed under a prescribed directed path system. In the geodesic framework for oriented graphs, which is the central graph-theoretic usage, a nonempty set $S \subseteq V(D)$ of a connected oriented graph $D$ is convex if, for every pair $x,y \in S$, the vertex set of every $xy$-geodesic and every $yx$-geodesic is contained in $S$; the induced subdigraph $D[S]$ is then a directed convex subgraph. This viewpoint leads to the convexity number $\operatorname{con}(D)$, the convexity spectrum $S_C(G)$, and the strong convexity spectrum $S_{SC}(G)$, and it supports both hardness results and exact spectrum theorems for grids [1703.02654]. Taken together with later path-based and metric formulations, the literature suggests that directed convex subgraphs are best understood as a family of closure notions on digraphs rather than as a single universal definition.

## 1. Geodesic convexity in oriented graphs

Let $D=(V,E)$ be an oriented graph, obtained by orienting each edge of a simple undirected graph in exactly one direction. The directed distance from $u$ to $v$, denoted $d_D(u,v)$, is the length of a shortest directed $uv$-path, and a $uv$-geodesic is any directed path of length $d_D(u,v)$. A nonempty set $S\subseteq V(D)$ is convex if for every pair $x,y\in S$, every vertex on every $xy$-geodesic and every $yx$-geodesic lies in $S$. Equivalently,
$$
S \text{ is convex } \iff \forall x,y\in S,\;\forall \text{ geodesics } P \text{ from }x\to y \text{ or }y\to x,\;V(P)\subseteq S.
$$
The convex hull $[A]$ of a nonempty set $A\subseteq V(D)$ is the intersection of all convex sets containing $A$; thus $[A]=A$ exactly when $A$ is convex [1703.02654].

Within this framework, a directed convex subgraph is simply the induced subdigraph $D[S]$ where $S$ is convex. Such a subgraph has the defining property that no geodesic between vertices of $S$ is forced to leave $S$. If $D$ is a nontrivial connected oriented graph, the convexity number is
$$
\operatorname{con}(D)=\max\{|S|: S\subsetneq V(D),\; S\text{ convex in }D\}.
$$
Every singleton is convex, so $1\le \operatorname{con}(D)\le |V(D)|-1$. For a connected undirected graph $G$, the convexity spectrum and strong convexity spectrum are
$$
S_C(G)=\{\operatorname{con}(D): D \text{ is an orientation of }G\},
$$
and
$$
S_{SC}(G)=\{\operatorname{con}(D): D \text{ is a strong orientation of }G\}.
$$
If $G$ admits no strong orientation, then $S_{SC}(G)=\varnothing$. Each $k\in S_{SC}(G)$ therefore records the existence of a strong orientation of $G$ having a proper directed convex subgraph on exactly $k$ vertices.

## 2. Structural consequences in strong orientations

Convexity in strong orientations is tightly constrained. If $D$ is strongly connected and $C\subseteq V(D)$ is convex with $|C|\ge 2$, then the induced subdigraph $D[C]$ is strongly connected. A direct consequence is that if $G$ admits a strong orientation, then any proper convex set of size at least $2$ induces a strong subdigraph of that orientation. In particular, if $g(G)$ is the undirected girth of $G$, then
$$
\min (S_{SC}(G)\setminus \{1\}) \ge g(G),
$$
because $D[C]$ must contain a directed cycle and its length is at least the length of an undirected cycle in $G$ [1703.02654].

Maximal convex sets also impose a global separation structure. If $C$ is a maximal convex set of an oriented graph $D$, then the complement $D-C=D[V(D)\setminus C]$ is connected as an undirected graph. Thus a proper maximal directed convex subgraph decomposes the vertex set into two connected blocks: the convex block itself and a connected complement.

In triangle-free graphs, including grids, convexity also forces a local orientation pattern along the boundary of a convex set. If $C$ is convex, $x\notin C$, and $x$ is adjacent to some $y\in C$, then all neighbors of $x$ inside $C$ must be oriented uniformly with respect to $x$: if $(x,y)\in E(D)$, then $N(x)\cap C\subseteq N^+(x)$; if $(y,x)\in E(D)$, then $N(x)\cap C\subseteq N^-(x)$. The reason is that a mixed in/out pattern would create a two-step geodesic passing through $x$ between vertices of $C$, forcing $x$ into the convex hull.

A sharp upper-extremal characterization is supplied by a result recalled from Chartrand–Fink–Zhang: for a connected oriented graph $D$ of order $n\ge 2$,
$$
\operatorname{con}(D)=n-1
$$
if and only if $D$ contains a source, a sink, or a transitive vertex. Here a transitive vertex $v$ satisfies $d^+(v)>0$, $d^-(v)>0$, and for every $u\in N^+(v)$ and $w\in N^-(v)$ the arc $(w,u)$ is present. Consequently, a strong orientation with no source, no sink, and no transitive vertex cannot realize convexity number $|V(D)|-1$.

## 3. Complexity, hardness, and algorithmic contrasts

The decision problem **Oriented Convexity Number** asks, given an oriented graph $D$ and an integer $k$, whether $D$ contains a convex set of size at least $k$. This problem is in $\mathcal{NP}$, and it is $\mathcal{NP}$-complete even for bipartite oriented graphs of arbitrary large girth [1703.02654]. The reduction is from **Clique**. Given a connected graph $G$ and $k\ge 3$, the construction replaces each vertex $u\in V(G)$ by a directed $6$-cycle $H_u$ with distinguished antipodal vertices $x_u$ and $y_u$, adds arcs $(x_u,y_v)$ and $(x_v,y_u)$ for each edge $uv\in E(G)$, and attaches every hexagon to a directed path
$$
z_1\to z_2\to z_3\to z_4
$$
by arcs $(x_u,z_1)$ and $(z_4,y_u)$. The resulting digraph is bipartite, strongly connected, and has girth $6$, and the key identity is
$$
\operatorname{con}(D)=6\omega(G).
$$
Hence $\omega(G)\ge k$ if and only if $\operatorname{con}(D)\ge 6k$. The same idea extends to arbitrary large girth by replacing the directed $6$-cycles with directed $2n$-cycles and the path $(z_1,\dots,z_4)$ with a directed path of length $n$.

This hardness result is specific to the geodesic-convexity setting on general oriented graphs. In acyclic digraphs, the literature also studies a different directed convexity: a nonempty set $X$ is convex if there is no directed path between vertices of $X$ which contains a vertex not in $X$. If, additionally, the underlying undirected graph of the induced subgraph on $X$ is connected, then $X$ is a connected convex set, or cc-set. For this DAG setting, all connected convex sets can be enumerated in time $O(n\cdot cc(D))$, where $cc(D)$ is the number of connected convex sets, and all convex sets can be enumerated in optimal time
$$
O\!\left(\sum_{C\in CO(D)} |C|\right)
$$
[0712.2661].

The contrast is substantial. In the strong-orientation geodesic model, even deciding whether a large proper directed convex subgraph exists is $\mathcal{NP}$-complete. In the acyclic path-closure model, enumeration is output-sensitive and near-optimal or optimal. This suggests that the computational profile of directed convex subgraphs depends strongly on the path system used to define convexity.

## 4. Grids and the strong convexity spectrum

The strongest exact results concern grids $P_n\Box P_m$. For the $2$-row grid,
$$
S_{SC}(P_n \Box P_2)=\{1\}\cup \{2j : \lfloor n/2\rfloor\le j \le n-1\}\setminus \{2\}.
$$
Thus all even values from $2\lfloor n/2\rfloor$ up to $2n-2$ occur, except $2$, and the only odd value is $1$. For the $3$-row grid,
$$
S_{SC}(P_n \Box P_3) = [1,3n-3]\setminus\{2,3,5,7\}.
$$
Here $2$ is excluded by the Chartrand–Fink–Zhang theorem, while $3$ and $5$ are excluded because there is no connected $3$- or $5$-vertex subgraph of the grid that both admits a strong orientation and whose complement is connected; $7$ is excluded by an explicit structural argument [1703.02654].

For general grids with $4\le m\le n$ and $G=P_n\Box P_m$, the strong convexity spectrum is completely determined:
$$
S_{SC}(G) = [1,nm-4]\setminus \{2,3,5\}\quad \text{if }m=4,
$$
$$
S_{SC}(G) = [1,nm-5]\setminus \{2,3,5\}\quad \text{if }m=5,
$$
and
$$
S_{SC}(G) = [1,nm-6]\setminus \{2,3,5\}\quad \text{if }m\ge 6.
$$
The missing values near the top end arise from general exclusions such as $\{2,3,5,|V(G)|-1\}\notin S_{SC}(G)$ and, when $n,m\ge i\in\{3,4,5,6\}$, also $|V(G)|-(i-1)\notin S_{SC}(G)$.

The central constructive devices are the **whirlpool** and the **anti-whirlpool**. In a whirlpool orientation of a rectangular subgrid, each $4$-cycle is oriented as a directed cycle in a checkerboard pattern, and the whole region is strongly connected. For a whirlpool $D$, one has
$$
\operatorname{con}(D)=1,
$$
because any two distinct vertices have convex hull equal to the entire region. The grid constructions then use whirlpools as atomic convexity blocks: rectangular regions whose internal geodesic structure is so tight that any proper convex set meeting such a block nontrivially must either contain the whole block or expand to the whole graph. Lemmas in the grid analysis systematically construct strong orientations with exact convexity numbers $4$, any value $ab$ with $a,b\ge 2$, $a\le n-1$, $b\le m-1$, any value $nb$ for $\frac{m}{2}\le b\le m-1$, and a wide range of values of the form $nm-k$.

The resulting morphology of directed convex subgraphs in grids is correspondingly rigid. Large convex sets are typically rectangular subgrids oriented as whirlpools or slight variants, and interfaces between blocks are oriented so that geodesics between vertices inside a designated block do not benefit from leaving it. This suggests a block-like theory of convexity for oriented grids: internal closure is enforced by the whirlpool geometry, while boundary arcs prevent uncontrolled convex-hull growth.

## 5. Short-path convexities and convex geometries on digraphs

A different branch of the subject defines directed convexity through directed paths on three vertices. In the $\overrightarrow{P_3}$-convexity of an oriented graph $D=(V,A)$, a set $C\subseteq V$ is convex if no vertex outside $C$ is the central vertex of a directed path $(u,v,w)$ with both endpoints $u,w$ in $C$. In the $\overrightarrow{P_3^*}$-convexity, the same condition is imposed only for induced directed $3$-vertex paths, that is, paths $(u,v,w)$ with $(u,w)\notin A(D)$. In both cases the hull is obtained by iterating the corresponding interval operator until closure, and a convexity is a convex geometry if every convex set is the hull of its extreme elements [2606.24707].

The extreme vertices differ between the two models. In $\overrightarrow{P_3}$-convexity, a vertex is extreme if and only if it is a source or a sink. In $\overrightarrow{P_3^*}$-convexity, a vertex is extreme if and only if it is a source, a sink, or a transitive vertex. For $\overrightarrow{P_3^*}$, any vertex added during hull iteration is never extreme in the final hull.

The $\overrightarrow{P_3}$ case admits a clean structural characterization. An oriented graph is a convex geometry in the $\overrightarrow{P_3}$-convexity if and only if it is acyclic, every descendant lies at directed distance at most $2$ from its ancestor, and whenever the graph contains an induced $\overrightarrow{O_4}$ with endpoints $a,d$ and internal vertices $b,c$, one has $\{b,c\}\subseteq \hull_{\overrightarrow{P_3}}(\{a,d\})$. This yields a polynomial-time recognition algorithm.

The $\overrightarrow{P_3^*}$ case is substantially harder. An oriented graph is a convex geometry in the $\overrightarrow{P_3^*}$-convexity if and only if it is a $\{\overrightarrow{P_4},\overrightarrow{O_4}\}$-free DAG and every induced obstruction from a certain family $\mathcal H$ has geometric hull in the ambient graph. Deciding whether a directed acyclic graph is a convex geometry in the $\overrightarrow{P_3^*}$-convexity is coNP-complete. On the other hand, for the hereditary class of acyclic indifference oriented graphs, geometricity in the $\overrightarrow{P_3^*}$-convexity is equivalent to being $\overrightarrow{P_4}$-free, and recognition can be done in $\mathcal O(n^3)$ time.

These results clarify a recurrent misconception: even very local directed path rules do not lead to a unique convexity theory. Closure under all directed $2$-paths, closure under induced directed $2$-paths, and closure under all directed paths in DAGs produce different extreme points, different obstruction sets, and different complexity landscapes.

## 6. Metric, geometric, and enumerative extensions

Directed convex subgraphs also appear in more geometric and algebraic settings. In the theory of oriented modular graphs, a set is $d$-convex if it contains every metric interval $I(x,y)$ between its vertices, and in modular graphs $d$-convexity coincides with gatedness. For an oriented modular graph $\Gamma$, the indicator function of a set $X$ is L-convex if and only if $X$ is $d_\Gamma$-convex; equivalently, convex subgraphs are precisely the $0/\infty$-valued L-convex functions. This embeds directed convex subgraphs into the broader theory of submodular functions on modular semilattices, Lovász extensions, and CAT(0) orthoscheme complexes [1610.02469].

A geometric-graph analogue arises in quadrant-restricted Yao graphs. For $Y_4^{\{i\}}$, the subgraph defined by one quadrant is planar, is a forest, is generally disconnected, and its directed version is a directed spanner with stretch $\sqrt{2}$. By contrast, $Y_4^{\{i,i+1\}}$, the subgraph defined by two adjacent quadrants, is always connected, may be nonplanar, and is not a directed spanner. Here the “convex regions” are Euclidean quadrants and half-planes rather than graph-geodesic intervals, but the same theme reappears: enlarging the admissible directional region improves connectivity while degrading structural rigidity [0905.2249].

An enumerative extension is provided by a recent orientation–subgraph correspondence. For any graph $G$ and sets of ordered vertex pairs $A,B$, the number of $(A,B)$-valid orientations equals the number of $(A,B)$-valid subgraphs, where $A$ encodes forbidden reachability and $B$ encodes required reachability. Parallel equidistributions also hold for cycle-, cocycle-, and cycle–cocycle-reversal classes, corresponding respectively to forests, $(A,B)$-connected subgraphs, and $(A,B)$-connected forests [2605.16028]. This suggests an enumerative route for directed-convexity notions that can be formulated as finite reachability constraints, although that step is an interpretation rather than an explicit theorem of the paper.

Across these frameworks, the common invariant is closure under directed intermediates: geodesic intermediates in strong orientations, path intermediates in DAGs, central vertices of short directed paths, metric intervals in oriented modular graphs, or cone-restricted nearest neighbors in geometric graphs. What changes from framework to framework is the ambient path system and, with it, the balance among structure, tractability, and expressive power.

Source: https://www.emergentmind.com/topics/directed-convex-subgraphs