A heuristic for the feedback arc set problem

Peter Eades, Xuemin Lin

Introduction

The Feedback Arc Set (FAS) problem is a cornerstone of graph theory with significant implications for information visualization and hierarchical layout algorithms. In their 1995 paper, Peter Eades and Xuemin Lin introduced Algorithm-FASH, a refined heuristic designed to find small feedback arc sets efficiently. By focusing on cubic directed graphs, the authors established a new performance bound of $m/4$, surpassing previous theoretical limits.

The Feedback Arc Set Problem

The FAS problem involves identifying the minimum number of arcs in a directed graph whose removal or reversal makes the graph acyclic (a Directed Acyclic Graph, or DAG). This is particularly useful in drawing flowcharts or dependency diagrams, where a clear hierarchy is established by ensuring most arrows point in a consistent direction.

A cubic directed graph with multiple cycles, illustrating the challenge of finding a minimum feedback arc set.

Because the FAS problem is NP-hard, finding the absolute minimum is computationally prohibitive for large graphs. Consequently, research focuses on heuristics—algorithms that provide high-quality solutions quickly—and proving performance bounds that guarantee the solution's quality relative to the total number of arcs $m$.

Algorithm-FASH: A Refined Heuristic

Algorithm-FASH improves upon earlier greedy approaches by incorporating graph condensation and a more sophisticated vertex selection strategy. The algorithm iteratively constructs a vertex sequence; any arc that points "backward" relative to this sequence is included in the feedback arc set.

The process follows four primary stages:

  1. Sink/Source Removal: Vertices with no outgoing arcs (sinks) or no incoming arcs (sources) are removed first, as they cannot be part of a cycle.
  2. Graph Condensation (CON): The algorithm simplifies the graph by collapsing long paths into single arcs. This allows the heuristic to focus on the underlying cyclic structure.
  3. The OBTAIN Procedure: When no sinks or sources remain, the algorithm must break a cycle. It selects a vertex where the difference between indegree and outdegree is maximized. To further optimize, it uses a secondary criterion (CHS) to choose a vertex that is likely to create new sinks or sources in the subsequent iteration.
  4. Concatenation: The sequences generated are combined to form the final ordering.

The algorithm maintains a computational complexity of $O(mn)$, making it practical for real-world applications.

Performance on Cubic Graphs

The authors specifically targeted cubic directed graphs—graphs where every vertex has a total degree of 3. These graphs serve as a rigorous benchmark for FAS heuristics.

An example of a more complex cubic directed graph used to test the limits of feedback arc set algorithms.

Algorithm-FASH guarantees a feedback arc set size of no more than $m/4$ (25% of total arcs) for cubic graphs without 2-cycles or loops. This is a notable improvement over the previous state-of-the-art bound of $5m/18$ (~27.8%) established by Berger and Shor.

Key Results and Implications

The paper's primary contribution is the tightened performance bound. By showing that the FAS size is at most $0.25m$, and noting that some cubic graphs require at least $2m/9$ (~0.222m) arcs to be reversed, the authors demonstrate that Algorithm-FASH is remarkably close to the theoretical lower bound for this class of graphs.

While the $m/4$ guarantee is specific to cubic graphs, the algorithm remains applicable to general directed graphs. For sparse graphs, it provides a bound of $m/2 - n/6$.

Conclusion

Eades and Lin's work provides a robust heuristic for a difficult combinatorial problem. By leveraging graph condensation and strategic vertex selection, Algorithm-FASH offers a practical and theoretically sound method for cycle elimination in directed graphs, particularly in the context of automated graph drawing and visualization.

Summary updated

BibTeX
@article{eades1995heuristic,
  author = {Peter Eades and Xuemin Lin},
  title = {{A heuristic for the feedback arc set problem}},
  journal = {Australas. J Comb.},
  year = {1995},
}
Figure