arXiv:2609.31205cs.DMSep 2026

Manuscript Offprint

arXiv:2609.31205

Complexity, approximation, and extension of proper $\{a,b\}$-edge-weightings

Péter Madarasi, Máté Simon

Abstract

For distinct integers aa and bb, an {a,b}\{a,b\}-edge-weighting assigns aa or bb to each edge and labels each vertex by the sum of its incident weights. Such a weighting is proper if adjacent vertices receive distinct labels. We prove that, for every fixed pair of distinct integers, deciding whether a proper weighting exists is NP-complete even for simple cubic planar graphs. On planar multigraphs with mm edges, we give an exact 2O(m)2^{O(\sqrt{m})}-time algorithm and, assuming the Exponential Time Hypothesis (ETH), exclude 2o(m)2^{o(\sqrt{m})}-time algorithms even for simple cubic planar graphs. As a consequence, locally irregular 2-edge-coloring is NP-complete on simple cubic planar graphs, admits a deterministic 2O(n)2^{O(\sqrt{n})}-time algorithm on nn-vertex graphs in this class, and admits no 2o(n)2^{o(\sqrt{n})}-time algorithm under ETH. For maximizing the number of edges joining vertices with distinct labels, we give a deterministic efficient polynomial-time approximation scheme (EPTAS) on planar multigraphs, a polynomial-time 1/2-approximation on multigraphs, and APX-completeness even on simple cubic graphs. Extending a partial {a,b}\{a,b\}-edge-weighting to a proper one is NP-complete for every fixed pair even on simple cubic planar bipartite graphs, while it is polynomial-time solvable on trees. The hardness persists even when the prescribed edges form disjoint paths of length 6 and all edges of each path have the same prescribed weight.

Keywords: 1-2-3 conjecture; neighbor-sum-distinguishing edge-weightings; {a,b}\{a, b\}-edge-weightings; locally irregular edge-colorings; planar graphs; approximation algorithms; extension of partial edge-weightings.

1 Introduction

Unless stated otherwise, G=(V,E)G = (V, E) denotes a finite, simple, undirected graph. For a vertex v∈V(G)v \in V(G), let EG(v)E_G(v) denote the set of edges incident with vv, and let dG(v)=∣EG(v)∣d_G(v) = |E_G(v)|. For a set of integers W⊆ZW \subseteq \mathbb{Z}, an assignment w:E(G)→Ww : E(G) \to W is called a W-edge-weighting. The label induced by ww at a vertex vv is zw(v)=∑e∈EG(v)w(e)z_w(v) = \sum_{e \in E_G(v)} w(e); when the weighting is clear, we write z(v)z(v). A W-edge-weighting is proper if zw(u)≠zw(v)z_w(u) \neq z_w(v) for every edge uv∈E(G)uv \in E(G). An edge is proper under ww if its endpoints receive distinct labels, and improper otherwise. An isolated edge is improper under every edge-weighting, because both endpoints receive the weight of that edge as their label. If GG has a proper W-edge-weighting, then we say that GG has the W-property.

In 2004, Karoński, Łuczak, and Thomason proposed the 1-2-3 conjecture, which states that every simple graph without isolated edges has the {1,2,3}\{1,2,3\}-property [24]. Throughout the paper, a and b denote fixed distinct integers. This paper studies decision, optimization, and extension problems for {a,b}\{a,b\}-edge-weightings motivated by that conjecture. A graph is locally irregular if adjacent vertices have distinct degrees. A locally irregular 2-edge-coloring is a 2-edge-coloring in which the edges of each color induce a locally irregular subgraph. On regular graphs, locally irregular 2-edge-colorings are equivalent to proper {a,b}\{a,b\}-edge-weightings; see Proposition 2.1 and [8].

References (30)