diff --git a/gtsam/inference/ClusterTree.h b/gtsam/inference/ClusterTree.h index 435631b21..bb7cf17e1 100644 --- a/gtsam/inference/ClusterTree.h +++ b/gtsam/inference/ClusterTree.h @@ -41,6 +41,11 @@ namespace gtsam typedef FastVector Factors; typedef FastVector > Children; + Cluster() {} + Cluster(Key key, const Factors& factors) : factors(factors) { + orderedFrontalKeys.push_back(key); + } + Keys orderedFrontalKeys; ///< Frontal keys of this node Factors factors; ///< Factors associated with this node Children children; ///< sub-trees