fix examples using discrete factor graph product

release/4.3a0
Varun Agrawal 2025-01-11 17:48:10 -05:00
parent 49c67d3819
commit 3c9b2a2351
3 changed files with 6 additions and 3 deletions

View File

@ -108,7 +108,8 @@ void runLargeExample() {
// Do brute force product and output that to file
if (scheduler.nrStudents() == 1) { // otherwise too slow
DecisionTreeFactor product = scheduler.product();
DecisionTreeFactor product =
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
product.dot("scheduling-large", DefaultKeyFormatter, false);
}

View File

@ -108,7 +108,8 @@ void runLargeExample() {
// Do brute force product and output that to file
if (scheduler.nrStudents() == 1) { // otherwise too slow
DecisionTreeFactor product = scheduler.product();
DecisionTreeFactor product =
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
product.dot("scheduling-large", DefaultKeyFormatter, false);
}

View File

@ -132,7 +132,8 @@ void runLargeExample() {
// Do brute force product and output that to file
if (scheduler.nrStudents() == 1) { // otherwise too slow
DecisionTreeFactor product = scheduler.product();
DecisionTreeFactor product =
*std::dynamic_pointer_cast<DecisionTreeFactor>(scheduler.product());
product.dot("scheduling-large", DefaultKeyFormatter, false);
}