arXiv:2608.26593cs.DMAug 2026

Manuscript Offprint

arXiv:2608.26593

On identifying codes on oriented graphs

Soura Sena Das, Sagnik Sen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

This article studies identifying codes in oriented graphs from a computational complexity perspective. We investigate the F\mathcal{F}-Id Code problem, where given a simple graph GG and a vertex subset CC, which induces a subgraph in the family F\mathcal{F}, as inputs and ask whether it is possible to orient GG in such a way that CC becomes its oriented identifying code. Focusing on the family Fd\mathcal{F}_d of dd-regular graphs, we establish a complete dichotomy by proving that the problem is polynomial-time solvable for d≤1d \leq 1 and NP-complete for all d≥2d \geq 2.

Keywords: Oriented graphs, Identifying codes, Oriented identifying codes, Regular graphs, Complexity dichotomy.

1 Introduction

First introduced in 1998 [7], an identifying code of an undirected graph G is a vertex subset C⊆V(G)C \subseteq V(G) such that, for every v∈V(G)v \in V(G), the set of codewords adjacent to v (including itself) is non-empty and distinct for every vertex. Identifying codes have been extensively studied in simple graphs [1, 2, 4] (also see [5] for an updated survey and [6] for an online bibliography containing over 500 related articles), motivated in particular by applications such as fault detection in multiprocessor systems. In contrast, relatively little is known about identifying codes in directed graphs, particularly oriented graphs. Cohen and Havet [3] initiated the systematic study of identifying codes in oriented graphs and investigated several of their structural and algorithmic properties. In this article, we focus on the computational complexity of deciding whether a given vertex subset C of an undirected graph G is an oriented identifying code under some orientation of G, motivated by a problem posed by Cohen and Havet [3].

An oriented graph G→\overrightarrow{G} is a directed graph without any directed cycle of length 1 or 2. Given an oriented graph G→\overrightarrow{G}, its set of vertices and arcs are denoted by V(G→)V(\overrightarrow{G}) and A(G→)A(\overrightarrow{G}), respectively. Moreover, GG denotes the underlying graph of G→\overrightarrow{G}, obtained by replacing all arcs of G→\overrightarrow{G} by edges. On the other hand, G→\overrightarrow{G} is an orientation of GG. Given an arc uvuv, uu is an in-neighbor of vv and vv is an out-neighbor of uu. The set of all in-neighbors (resp., out-neighbors) of uu is denoted by N−(u)N^{-}(u) (resp., N+(u)N^{+}(u)). Furthermore, the closed in-neighborhood (resp., closed out-neighborhood) of uu is given by N−[u]=N−(u)∪{u}N^{-}[u] = N^{-}(u) \cup \{u\} (resp., N+[u]=N+(u)∪{u}N^{+}[u] = N^{+}(u) \cup \{u\}). Given a graph GG (resp., oriented graph G→\overrightarrow{G}) and any vertex subset SS, we denote the subgraph induced by SS by G[S]G[S] (resp., G→[S]\overrightarrow{G}[S]).

Given an oriented graph G→\overrightarrow{G}, a vertex subset C⊆V(G→)C \subseteq V(\overrightarrow{G}) is an identifying code of G→\overrightarrow{G} if the identifier I(u)=N+[u]∩CI(u) = N^+[u] \cap C is non-empty and distinct for every vertex u∈V(G→)u \in V(\overrightarrow{G}). Given an undirected graph GG, a vertex subset C⊆V(G)C \subseteq V(G) is an oriented identifying code of GG if there exists an orientation G→\overrightarrow{G} of GG such that CC is an identifying code of G→\overrightarrow{G}. A non-empty vertex set C⊆V(G)C \subseteq V(G) is called a code and its vertices codewords while the vertices of V(G)∖CV(G) \setminus C are called non-codewords. The complexity problem of our interest is the following.

F-Id-Code (where F is a family of simple graphs)

Instance: A graph GG and a set of vertices C⊆V(G)C \subseteq V(G) satisfying G[C]∈FG[C] \in \mathcal{F}.

Question: Is CC an oriented identifying code of GG?

Cohen and Havet [3] showed that the F\mathcal{F}-ID CODE is NP-complete when F\mathcal{F}, denotes the family of all simple graphs, and is polynomial-time solvable when F\mathcal{F} is a family of graphs in which all but finitely many graphs HH satisfy ∣E(H)∣=O(log⁡2(ϕ(∣V(H)∣)))|E(H)| = O(\log_2(\phi(|V(H)|))), where ϕ\phi is a fixed polynomial. Thus, while the problem is tractable for broad classes of very sparse graphs, its complexity for dense graph families remain largely unexplored. In particular, Cohen and Havet [3] asked the complexity of the K\mathcal{K}-ID CODE problem, where K\mathcal{K} is the family of all complete graphs. This naturally leads to the following general question.

Problem 1.1 Let F be a family of simple graphs. Then what is the computational complexity of the F-ID CODE problem?

Motivated by this question, we study the complexity dichotomy of the F\mathcal{F}-ID CODE problem for dd-regular graph families, where F\mathcal{F} varies over the family of dd-regular graphs for all d≥0d \geq 0. Following the result of Cohen and Havet [3], we investigate how the tractability of the problem changes as the density of G[C]G[C] increases. Although the density of the families of dd-regular graphs increase linearly with the degree, the problem becomes intractable already for d≥2d \geq 2. That means, while the problem remains tractable when G[C]G[C] is an independent set, or a collection of disjoint edges, it becomes intractable when G[C]G[C] is a disjoint union of cycles (24-cycles in our proof). A complete dichotomy of the problem Fd\mathcal{F}_d-ID CODE, where Fd\mathcal{F}_d denotes the family of dd-regular graphs for all d≥0d \geq 0, is obtained through the following result.

Theorem 1.2 Let Fd\mathcal{F}_d be the family of all dd-regular simple graphs, for d≥0d \geq 0. Then the Fd\mathcal{F}_d-ID CODE problem is polynomial-time solvable if d≤1d \leq 1 and is NP-complete if d≥2d \geq 2.

As a consequence, we obtain NP-completeness for the F\mathcal{F}-ID CODE problem where F\mathcal{F} is one of the following graph families: bipartite graphs, outerplanar graphs, partial 2-tree graphs, planar graphs, and graphs having maximum degree at most Δ\Delta for every Δ≥2\Delta \geq 2.