Feedback arc set


In graph theory, a directed graph may contain directed cycles, a one-way loop of edges. In some applications, such cycles are undesirable, and we wish to eliminate them and obtain a directed acyclic graph. One way to do this is simply to drop edges from the graph to break the cycles. A feedback arc set or feedback edge set is a set of edges which, when removed from the graph, leave a DAG. Put another way, it's a set containing at least one edge of every cycle in the graph.
Closely related are the feedback vertex set, which is a set of vertices containing at least one vertex from every cycle in the directed graph, and the minimum spanning tree, which is the undirected variant of the feedback arc set problem.
A minimal feedback arc set has the additional property that, if the edges in it are reversed rather than removed, then the graph remains acyclic. Finding a small edge set with this property is a key step in layered graph drawing.
Sometimes it is desirable to drop as few edges as possible, obtaining a minimum feedback arc set, or dually a maximum acyclic subgraph. This is a hard computational problem, for which several approximate solutions have been devised.

Example

As a simple example, consider the following hypothetical situation, where in order to achieve something, certain things must be achieved before other things:
We can express this as a graph problem. Let each vertex represent an item, and add an edge from A to B if you must have A to obtain B. Unfortunately, you don't have any of the three items, and because this graph is cyclic, you can't get any of them either.
However, suppose you offer George $100 for his piano. If he accepts, this effectively removes the edge from the lawnmower to the piano, because you no longer need the lawnmower to get the piano. Consequently, the cycle is broken, and you can trade twice to get the lawnmower. This one edge constitutes a feedback arc set.

Minimum feedback arc set

As in the above example, there is usually some cost associated with removing an edge. For this reason, we'd like to remove as few edges as possible. Removing one edge suffices in a simple cycle, but in general figuring out the minimum number of edges to remove is an NP-hard problem called the minimum feedback arc set or maximum acyclic subgraph problem.

Theoretical results

This problem is particularly difficult in k-edge-connected graphs for large k, where each edge falls in many different cycles. The decision version of the problem, which is NP-complete, asks whether all cycles can be broken by removing at most k edges; this was one of Richard M. Karp's 21 NP-complete problems, shown by reducing from the vertex cover problem.
Although NP-complete, the feedback arc set problem is fixed-parameter tractable: there exists an algorithm for solving it whose running time is a fixed polynomial in the size of the input graph but exponential in the number of edges in the feedback arc set.
Alternatively, a fixed-parameter tractable algorithm is given by a dynamic programming technique that depends only exponentially on the
dimension of the cycle space of the graph.
The minimum feedback arc set problem is APX-hard, which means that there is a hard limit on its approximation quality, a constant c > 1 such that every polynomial-time approximation algorithm will sometimes return an edge set larger than c times the optimal size. The proof involves approximation-preserving reductions from vertex cover to feedback vertex set, and from feedback vertex set to feedback arc set. More specifically, because vertex cover has no approximation better than 1.3606 unless P ≠ NP, the same is true for feedback arc set. That is, it is possible to take. If the unique games conjecture is true, this inapproximability threshold could be increased to arbitrarily close to 2.
On the other hand, the best known approximation algorithm has the non-constant approximation ratio O. For the dual problem, of approximating the maximum number of edges in an acyclic subgraph, an approximation somewhat better than 1/2 is possible. Determining whether feedback arc set has a constant-ratio approximation algorithm, or whether a non-constant ratio is necessary, remains an open problem.
If the input digraphs are restricted to be tournaments, the resulting problem is known as the minimum feedback arc set problem on tournaments. This restricted problem does admit a polynomial-time approximation scheme, and this still holds for a restricted weighted version of the problem. A subexponential fixed parameter algorithm for the weighted FAST was given by.
On the other hand, if the edges are undirected, the problem of deleting edges to make the graph cycle-free is equivalent to finding a minimum spanning tree, which can be done easily in polynomial time.

Approximations

Several approximation algorithms for the problem have been developed - including Monte Carlo randomized algorithm that solves the problem in polynomial time with arbitrary probability. A particularly simple algorithm is the following:
Now both and are acyclic subgraphs of, and at least one of them is at least half the size of the maximum acyclic subgraph.