|
GTSAM
4.0.2
C++ library for smoothing and mapping (SAM)
|
#include <gtsam/base/FastMap.h>#include <gtsam/inference/FactorGraph.h>#include <vector>#include <gtsam/base/kruskal-inl.h>
Go to the source code of this file.
Functions | |
| template<class FACTOR > | |
| std::vector< size_t > | gtsam::utils::kruskal (const FactorGraph< FACTOR > &fg, const std::vector< double > &weights) |
| std::vector< size_t > gtsam::utils::kruskal | ( | const FactorGraph< FACTOR > & | fg, |
| const std::vector< double > & | weights | ||
| ) |
Compute the minimum spanning tree (MST) using Kruskal's algorithm
| fg | Factor graph |
| weights | Weights of the edges/factors in the factor graph |
1.8.13