Skip to content
Snippets Groups Projects
Commit 9ee6099d authored by Florian Heinrichs's avatar Florian Heinrichs
Browse files

fixed assertions

parent 1e6367ae
No related merge requests found
......@@ -25,7 +25,7 @@ partition::subgraph partition::assigned_subgraph_of(node_id v) const {
}
void partition::assign_node(node_id v, subgraph sg) {
assert(node_assignments_[v-1] != none);
assert(node_assignments_[v-1] == none);
// Increments current objectives
for (auto const& target : graph_.get_adjacency(v)) {
......@@ -43,7 +43,7 @@ void partition::assign_node(node_id v, subgraph sg) {
void partition::unassign_node(node_id v) {
subgraph sg = node_assignments_[v-1];
assert(sg == none);
assert(sg != none);
// Decrements current objectives
for (auto const& target : graph_.get_adjacency(v)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment