diff --git a/cpp/SymbolicConditional.h b/cpp/SymbolicConditional.h index 331669682..0c9a5d96b 100644 --- a/cpp/SymbolicConditional.h +++ b/cpp/SymbolicConditional.h @@ -62,6 +62,17 @@ namespace gtsam { parents_.push_back(parent2); } + /** + * Three parents + */ + SymbolicConditional(const std::string& key, const std::string& parent1, + const std::string& parent2, const std::string& parent3) : + Conditional(key) { + parents_.push_back(parent1); + parents_.push_back(parent2); + parents_.push_back(parent3); + } + /** * A list */