English

Color-Constrained Arborescences in Edge-Colored Digraphs

Data Structures and Algorithms 2025-03-19 v1 Computational Complexity Discrete Mathematics Combinatorics

Abstract

Given a multigraph GG whose edges are colored from the set [q]:={1,2,,q}[q]:=\{1,2,\ldots,q\} (\emph{qq-colored graph}), and a vector α=(α1,,αq)Nq\alpha=(\alpha_1,\ldots,\alpha_{q}) \in \mathbb{N}^{q} (\emph{color-constraint}), a subgraph HH of GG is called \emph{α\alpha-colored}, if HH has exactly αi\alpha_i edges of color ii for each i[q]i \in[q]. In this paper, we focus on α\alpha-colored arborescences (spanning out-trees) in qq-colored multidigraphs. We study the decision, counting and search versions of this problem. It is known that the decision and search problems are polynomial-time solvable when q=2q=2 and that the decision problem is NP-complete when qq is arbitrary. However the complexity status of the problem for fixed qq was open for q>2q > 2. We show that, for a qq-colored digraph GG and a vertex ss in GG, the number of α\alpha-colored arborescences in GG rooted at ss for all color-constraints αNq\alpha \in \mathbb{N}^q can be read from the determinant of a symbolic matrix in q1q-1 indeterminates. This result extends Tutte's matrix-tree theorem for directed graphs and gives a polynomial-time algorithm for the counting and decision problems for fixed qq. We also use it to design an algorithm that finds an α\alpha-colored arborescence when one exists. Finally, we study the weighted variant of the problem and give a polynomial-time algorithm (when qq is fixed) which finds a minimum weight solution.

Keywords

Cite

@article{arxiv.2503.13984,
  title  = {Color-Constrained Arborescences in Edge-Colored Digraphs},
  author = {P. S. Ardra and Jasine Babu and R. Krithika and Deepak Rajendraprasad},
  journal= {arXiv preprint arXiv:2503.13984},
  year   = {2025}
}
R2 v1 2026-06-28T22:24:51.334Z