I am studying the analysis of algorithms. I am currently reading on Network Flow
algorithms. I am considering an application of Network Flow
algorithms concerning finding bipartite matchings
of minimum cost.
- Let
G
with corresponding Network FlowG'
- Let
M
be aperfect matching
inG
- Let
G<sub>M</sub>
be theresidual graph
associated with this matching
From Jon Kleinberg and Eva Tardos' Algorithm Design 7.13 on page 406,
Theorem 7.62
states:
(7.62) Let M be a perfect matching. If there is a negative-cost directed cycle C in GM, then M is not minimum cost
This theorem makes sense however, I am confused as to how a bipartite flow network's
residual graph
of a perfect matching
can actually contain a cycle. The only way I could see a cycle is if the sink
or source
were involved.
However in a perfect matching
the source
would contain no edges leaving it, and the sink
would contain no edges entering it. Also, a cycle occurring in the inner nodes would seem to contradict the definition of a Bipartite graph
.
Can someone provide an example of such a cycle in the residual graph?