Extended SWIG python interface (inspired by Kyle Ellrott): inference is possible...
[libdai.git] / include / dai / varset.h
index d32b1e4..c51f7d9 100644 (file)
@@ -145,6 +145,13 @@ class VarSet : public SmallSet<Var> {
             os << "}";
             return( os );
         }
+
+        /// Formats a VarSet as a string
+        std::string toString() const {
+            std::stringstream ss;
+            ss << *this;
+            return ss.str();
+        }
     //@}
 };