MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / center

Method center

src/Tracker/graph/GTL/src/graph.cpp:452–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452node graph::center() const
453{
454 int min_excentricity = number_of_nodes()+1;
455 node n, center;
456 forall_nodes(n, *this)
457 {
458 int excentricity = n.excentricity();
459 if(excentricity < min_excentricity)
460 {
461 center = n;
462 min_excentricity = excentricity;
463 }
464 }
465 return center;
466}
467
468//--------------------------------------------------------------------------
469// Iterators

Callers

nothing calls this directly

Calls 2

excentricityMethod · 0.80
forall_nodesFunction · 0.70

Tested by

no test coverage detected