[graph] Error check

This commit is contained in:
Behdad Esfahbod 2023-08-01 12:25:45 -06:00
parent 7a9aac1ae3
commit 07e7033076

View file

@ -280,7 +280,8 @@ struct graph_t
for (auto _ : parents)
new_parents.set (id_map[_.first], _.second);
parents = std::move (new_parents);
if (!new_parents.in_error ())
parents = std::move (new_parents);
}
void remap_parent (unsigned old_index, unsigned new_index)