vertex is constrained if NOT allowed to move

This commit is contained in:
Jane Tournois 2024-11-18 16:17:19 +01:00
parent 7462b70bec
commit 21e1ff113a
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ namespace internal {
// property map of constrained vertices for relaxation
auto vertex_constraint = [&](const vertex_descriptor v)
{
return is_move_allowed(v, relax_constraints);
return !is_move_allowed(v, relax_constraints);
};
auto constrained_vertices_pmap
= boost::make_function_property_map<vertex_descriptor>(vertex_constraint);