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);
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);