From cb161014c2c988034c79ec3b029a28871d5ad6b2 Mon Sep 17 00:00:00 2001 From: Sebastian Buchwald Date: Mon, 26 Jul 2010 09:26:54 +0000 Subject: [PATCH] The other node is incident to the old edge. [r27815] --- optimal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/optimal.c b/optimal.c index 6cf744db1..436cfb360 100644 --- a/optimal.c +++ b/optimal.c @@ -353,11 +353,11 @@ static void merge_source_into_target(pbqp *pbqp, pbqp_edge *edge) assert(old_matrix); if (old_edge->tgt == src_node) { - other_node = edge->src; + other_node = old_edge->src; other_len = old_matrix->rows; } else { - other_node = edge->tgt; + other_node = old_edge->tgt; other_len = old_matrix->cols; } assert(other_node); @@ -511,11 +511,11 @@ static void merge_target_into_source(pbqp *pbqp, pbqp_edge *edge) assert(old_matrix); if (old_edge->tgt == tgt_node) { - other_node = edge->src; + other_node = old_edge->src; other_len = old_matrix->rows; } else { - other_node = edge->tgt; + other_node = old_edge->tgt; other_len = old_matrix->cols; } assert(other_node); -- 2.20.1