Also support loading core information into shared memory

This commit is contained in:
Patrick Niklaus
2015-08-19 11:44:49 +02:00
parent 48d1a5ec5d
commit 92956f2b45
6 changed files with 103 additions and 40 deletions
+7
View File
@@ -549,12 +549,19 @@ class Contractor
if (remaining_nodes.size() > 2)
{
// TODO: for small cores a sorted array of core ids might also work good
for (const auto& node : remaining_nodes)
{
auto orig_id = orig_node_id_from_new_node_id_map[node.id];
is_core_node[orig_id] = true;
}
}
else
{
// in this case we don't need core markers since we fully contracted
// the graph
is_core_node.clear();
}
SimpleLogger().Write() << "[core] " << remaining_nodes.size() << " nodes " << contractor_graph->GetNumberOfEdges() << " edges." << std::endl;