Feedback Arc Set
Feedback Arc Set
238
TRANSACTIONS
c=
c,
(13)
THEORY
June
3) Let $&(&) be the subgraph (eventually nonconnetted) formed by the zero impedance branches of S(G).
It is clear that 6 = $. We shall prove that if 3 5 5 9
such that 2 C 5, then 3 $2 6 : G C 5. Note that such
a tree & can be constructed by the union of the following
subgraphs:
1) S
2) the trees 5h C $, : ai e 5 - 9
C@
with /.i = c
ON CIRCUIT
p,, + p.
Minimum
PROBLEM
in the topology of directed graphs
that has attracted some interest in recent years
is the following: to determine, for an arbitrary
directed graph, a minimum set of arcs which, if removed,
leaves the resultant graph free of directed loops. The
problem was originally
suggested by Runyon,
who
observed that the analysis of sequential switching circuits
with feedback paths would be simplified by the knowledge
of such a minimum set. Increased interest in this problem
is in large measure due to Moore, who has encouraged
attempts to find a solution. It was at first h.oped that a
simple and efficient algorithm might be found, perhaps
even an algorithm such that the number of operations
1963
Younger: Minimum
239
AND NOTATIONS
c
Q
Fig. 1-A
directed graph.
is a l-l
function from the nodes of the graph to the
integers 1, * . . , n.
DeJinition 7: For a directed graph of n nodes with sequential ordering R, the connection matrix
c = b-ki~R~i~l.
has one row and one column for each node of the graph,
and the entry at row R(i), column R(j), denoted
= number of arcs from node i to node j.
CR(i)R(i)
An example of a sequential ordering of the nodes of the
graph of Fig. 1 is given by
R(a) = 1,
R(c) = 2,
R(e) = 3,
R(b) = 4,
R(d) = 5
(1)
e b d
2 0
10
c00110
C=el
1.
b0
d-0
1 0
(2).
O-
IEEE
240
ON CIRCUIT
TRANSACTIONS
2 R(j);
i, j E G},
(3)
(4)
THEORY
June
the sequential
and
ordering
(d,e!)
and
(5, 3>}R
FEEDBACK
ARC SETS
Theorem W: Any subgraph of a directed graph consisting of the arcs of a min@um feedback arc set has no
directed loops except self-loops.
Proof: Let R be a sequential ordering such that
F, = {(i, j), R(i) > R(j)] is a minimum feedback arc
set. The arcs in FB for which R(i) = R(j) are self-loops;
the remaining arcs (i, j) have the property R(i) > R(j) and
hence, as in Lemma 1, form no directed loops.
It follows from this theorem that an arbitrary directed
graph without self-loops can always be partitioned into
two subgraphs such that each is itself free of directed
loops. This remark can be elaborated to prove that the
edges of any nondirected graph without connection from
1963
Younger: Minimum
241
C = Niww,
has one row and one column for each node of the graph,
and GcijRtil = number of arcs from node i to j minus
number of arcs from node j to i.
For the (set of graphs order equivalent to the) graph
of Fig. 1 with the sequential ordering given by (I), the
connection triangle is
C=
a 2
-11
0
1
-1
(5)
d
From this array, the reduced graph may immediately
be obtained as a figure: in this case it differs from Fig. 1
in that it lacks the self-loop at node a and the loop
(e, 4 (4 e).
Theorem 5: Given an optimum ordering R of a directed
graph G, let Gl be any consecutive subgraph:
a) G, must have as minimum feedback arc set those
arcs of G, that are feedback arcs according to R;
b) similarly, the subgraph H obtained from G by
deleting all arcs and coalescing all nodes of G, must have as
minimum feedback arc set those arcs of H that are feedback arcs by R.3
Proof: Partition the feedback arc set F, into two
subsets:
(6)
(7)
(8)
242
IEEE
TRANSACTIONS
ON CIRCUIT
(9)
June
THEORY
5 b), the feedback arc set corresponding to cGSG,is minimum for H and hence, cc,,& 2 cGZGI,
the feedback arc set under R
b) For CG>G, = cG,G1,
contains the same number of members as the feedback
arc set under R, and since R is optimum, so is R, Q.E.D.
An examination of the graph of Fig. 1 reveals that the
ordering given by (1) does indeed satisfy this theorem.
It is simple enough to choose for this graph an ordering
which does not, but instead consider the graph of Fig. 3
with the sequential ordering
(11)
+ 64 + ci4 = 2);
G,G,(=h
i eG,
n,,
i E G,
or
G,
(10)
i e G,.
70
C =
O-l
IU
-1
1
1
-1
03
9
Note that c:,( = - 1) < 0 and c:, + cl, + c:,( = - 1) < 0;
these are the illustrations already chosen but are more
easily recognized in this form.
When for a graph G with sequential ordering R there
exists consecutive subgraphs G,, G, such that cG,G,<&,G,,
then there are fewer feedback arcs under R given by (lo),
i.e., replacing R by R gives a better ordering. By iterating
this procedure a sequential ordering that does satisfy
CG,G,
> cG,G, for all G,, G, can be found. In the example
just considered, if the order of d and b are first reversed
and then the order of a shifted beyond that of c, e, g,
Younger: Minimum
1963
243
b, 4 c, e, g, 4
(13)
which does satisfy CG,G, 2 cG*G, for all G,, Gz. That an
ordering satisfies this condition is not sufficient for it to
be optimum, but any such ordering appears, intuitively at
least, to be a fairly good one.
DEFINITION
Fig. 2-Illustration
of a property
of an optimum
ordering.
Fig. 3-A
Thcorcm
6.
(a)
(b)
Fig. 4-Application
The viewpoint in this section will be broadened to include feedback arc sets and sequential orderings which,
while possessing the properties discussed in the previous
two sections, may be less than optimum.
DeJkition 11: A feedback arc set for a directed graph
is minimal if it contains no proper subset that is also a
feedback arc set for this graph.
To test a feedback arc set F, of a directed graph G for
minimality, the arcs of F, are removed from G leaving a
subgraph G free of directed loops. The arcs of FE are
then added individually to G; if any of these arcs with
G form no directed loops then F, is not minimal; however, if all such arcs are deleted from F,, the resultant
feedback arc set is minimal. A sequential ordering of the
nodes which determines this resultant feedback arc set
can then be found. In case it is not clear whether an arc
with G forms any loop, a simple conclusive test for the
nonexistence of dir&ted loops in a graph may be used;
this test is implied by the lemma which follows, a restatement of a result of Hakimi [2].
Lemma 2: A graph is free of directed loops if, and
only if, successively removing source nodes and the arcs
leaving each, exhausts the graph.
In this statement, which follows from Lemma 1, the
order in which sources are removed when a choice exists
does not matter. An equally valid test for the lack of loops
in a graph is the successive removal of sink nodes.
DeJinition lb: An ordering R for a directed graph is
admissible if
a) the graph ordered by R satisfies cG,G. > CG,G, for
all appropriate consecutive subgraphs G,, Gz;
b) the feedback arc set determined by R is minimal.
The first criterion should generally be the more critical,
but does not imply the second. The test of each criterion,
if not satisfied, indicates a simple means to develop an
ordering which does meet the test. Hence, the securing of
an admissible ordering is really an easily accomplished
task and is the starting point from which to search for
optimum orderings. It is convenient to call this admissible
ordering first obtained the admissible reference ordering
and to relabel the graph a, b, c, . . . in accordance with
this reference ordering.
As a further bit of terminology, call an n-tuple of nodes
(i, i . . . , Ic) for which (1, 2, . . . , n) = R(i, j, . . . , k)
the n-tuple representation of an ordering R. It is often
convenient to order a set of n-tuples lexicographically,
with the left-most symbol of greatest significance. Lexicographic order depends directly on the labeling used; the
IEEE
244
TRANSACTIONS
most suitable labels in this work are those which correspond to the admissible reference ordering.
DeJinition 1s: Two sequential orderings of a graph are
identical with respect to feedbaclc, or F identical if they
determine the same feedback arc set. An F- identical class
of orderings is a set of sequential orderings identical with
respect to feedback. The ordering in an F-identical class
whose representation as an n-tuple is lexicographically
the smallest with respect to the admissible reference
labeling is the F representative.
Definition 1.4: Given a sequential ordering R, a sequent
derived from R is an ordered pair of nodes [i, j] for which
R(j) = R(i) + 1. If node i precedes node j according to
the reference labeling, then [i, j] is an up sequent; if i
succeeds j then [i, j] is a down sequent.
An F-identical class for the graph of Fig. 3 is given by
(f, 4 b, a, c, e, d
(f, d, a, b, c, e, d
I
(f, a, 4 b, c, e, d .
(f, 4 a, c, b, e, d
I (f, a, d, 6, b, e, cd,
The third of these tuples is the smallest lexicographically
and hence is the F representative. Using the labeling
given, this third tuple has down sequents [f, a] and [d, b]
and up sequents [a, d], [b, c], [c, e] and [e, g].
Theorem 7: To every down sequent [i, 91 derived from
an admissible F representative R,, there corresponds one
or more arcs (i, j) in the reduced graph G.
Note: These arcs are feedback arcs according to the
admissible reference ordering.
Proof: By definition of reduced graph, there cannot
be arcs both from i to j and from j to i in G; suppose that
G contains one or more arcs from j to i. Modifying R,
by reversing the order of nodes j and i alters the corresponding feedback arc set only by removing these arcs,
and thereby contradicts the admissibility
of R,. The
second alternative, that no arcs connect nodes i and j,
contradicts (since [i, j] is a down sequent) the designation
of R, as F representative. Hence one or more arcs leave
node i and enter node j.
AN
ALGORITHM
FOR FINDING
AX
MINIMUM
FEEDBACK
SETS
For a directed graph G with ordering R, let Q(R) represent the number of arcs in F,, the feedback arc set
determined by R. It has been shown that determining a
minimum feedback arc set for G is equivalent to finding
an R for which Q(R) is minimum. In this section, a more
general version of this basic problem is considered: that
of finding all minimum feedback arc sets, or equivalently,
all F representatives R for which Q(R) attains its absolute
minimum.
The search for optimum orderings begins with any
ordering which is admissible; with this as reference, an
-..- ClKCUlI
-----I-UN
-------LHlCUEY
J me
Younger: Minimum
enumerate
ACKNOTVLEDGMENT