Simplify branching.

The “master” arcs used as keys are always forward-facing. A reversed arc only
exists as a duplicate of an existing arc that was previously added. Thus, in
most places we can simplify the code by relying on arcs being forward-facing.