Show factor graph in notebook

release/4.3a0
Frank Dellaert 2021-12-20 00:19:35 -05:00
parent 9d2b627c09
commit a5351137ab
3 changed files with 218 additions and 6 deletions

View File

@ -106,6 +106,11 @@ class DiscreteBayesTree {
double operator()(const gtsam::DiscreteValues& values) const;
};
#include <gtsam/inference/DotWriter.h>
class DotWriter {
DotWriter();
};
#include <gtsam/discrete/DiscreteFactorGraph.h>
class DiscreteFactorGraph {
DiscreteFactorGraph();
@ -123,6 +128,14 @@ class DiscreteFactorGraph {
void print(string s = "") const;
bool equals(const gtsam::DiscreteFactorGraph& fg, double tol = 1e-9) const;
string dot(const gtsam::DotWriter& dotWriter = gtsam::DotWriter(),
const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
void saveGraph(string s,
const gtsam::DotWriter& dotWriter = gtsam::DotWriter(),
const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
gtsam::DecisionTreeFactor product() const;
double operator()(const gtsam::DiscreteValues& values) const;
gtsam::DiscreteValues optimize() const;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long