Change interface of Tarjan get_component_size to take component id

This commit is contained in:
Patrick Niklaus
2015-07-07 18:24:18 +02:00
parent c80c2233c5
commit 35542e5823
3 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ int main(int argc, char *argv[])
BOOST_ASSERT(target != SPECIAL_NODEID);
const unsigned size_of_containing_component = std::min(
tarjan->get_component_size(source), tarjan->get_component_size(target));
tarjan->get_component_size(tarjan->get_component_id(source)), tarjan->get_component_size(tarjan->get_component_id(target)));
// edges that end on bollard nodes may actually be in two distinct components
if (size_of_containing_component < 1000)