for (index = 0; index < degree; ++index) {
if (other_copy->edges[index]->src == node) {
- edge_copy = other_copy->edges[index];
+ edge_copy = other_copy->edges[index];
+ edge_copy->src = copy;
break;
}
}
for (index = 0; index < degree; ++index) {
if (other_copy->edges[index]->tgt == node) {
- edge_copy = other_copy->edges[index];
+ edge_copy = other_copy->edges[index];
+ edge_copy->tgt = copy;
break;
}
}