Added example_sprinkler.py, a python port of examples/example_sprinkler.cpp and added...
[libdai.git] / python / test.py
1 import dai
2
3 v1 = dai.Var(0,4)
4 v2 = dai.Var(1,3)
5 vs = dai.VarSet(v1,v2)
6 f = dai.Factor(vs)
7 fVec = dai.VecFactor()
8 fVec.append(f)
9 fg = dai.FactorGraph(fVec)