Fix logic rules for parallel edges