[graph] Use a move instead of swap
diff --git a/src/graph/graph.hh b/src/graph/graph.hh
index a844af2..3462c9f 100644
--- a/src/graph/graph.hh
+++ b/src/graph/graph.hh
@@ -568,7 +568,7 @@
     check_success (!sorted_graph.in_error ());
 
     remap_all_obj_indices (id_map, &sorted_graph);
-    hb_swap (vertices_, sorted_graph);
+    vertices_ = std::move (sorted_graph);
 
     if (!check_success (new_id == -1))
       print_orphaned_nodes ();