struct mp2p_icp_filters::GraphPartitionWarmStart

Overview

Fiedler vectors of the parts solved by a call to spectral_partition(), to start the next call near the solution when the graph changed little (e.g. it grew by a few nodes): long, slowly converging graphs then need a few Lanczos runs instead of many. A part takes the vector of the earlier part with the same lowest node and depth in the recursion, if any (new nodes: the mean of their known neighbors), plus a small share of the usual random start.

The Fiedler vector found is the same up to the solver tolerance, but its error grows as the gap between the second and third eigenvalues shrinks, and the sweep picks the position of minimum normalized cut, which jumps when two positions have nearly equal cuts. So a warm-started partition may differ from a cold one where the graph has no clear cut (e.g. a long uniform path without the clear-cut test), and then depends on the history of calls. With clear cuts, or with the clear-cut test on, they agree in practice.

#include <graph_partition.h>

struct GraphPartitionWarmStart
{
    // fields

    std::map<std::pair<uint32_t, uint32_t>, std::vector<std::pair<uint32_t, double>>> vectors;
};

Fields

std::map<std::pair<uint32_t, uint32_t>, std::vector<std::pair<uint32_t, double>>> vectors

(lowest node, depth) of each part solved -> (node, Fiedler value), sorted by node