Added empty() to BayesNet

release/4.3a0
Alex Cunningham 2012-10-09 18:21:06 +00:00
parent f8b96ad090
commit 76b88bd06e
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ public:
return conditionals_.size();
}
/** @return true if there are no conditionals/nodes */
bool empty() const {
return conditionals_.empty();
}
/** print statistics */
void printStats(const std::string& s = "") const;