Fixed a bug with parallel-edge matching consuming the same edge twice.