@@ -73,7 +73,7 @@ def main(filename, with_dot, knowledge):
7373
7474 if dotprefix != None :
7575 with open (dotprefix + "gp.dot" , "w" ) as f :
76- print (gp .toDot (), file = f )
76+ print (gp .to_dot (), file = f )
7777
7878 print ("\n === Acyclic Ground Program ===" )
7979 with Timer ("acyclic" ):
@@ -82,15 +82,16 @@ def main(filename, with_dot, knowledge):
8282
8383 if dotprefix != None :
8484 with open (dotprefix + "agp.dot" , "w" ) as f :
85- print (gp .toDot (), file = f )
85+ print (gp .to_dot (), file = f )
8686
8787 if knowledge == "sdd" :
8888 print ("\n === SDD compilation ===" )
8989 with Timer ("compile" ):
9090 nnf = SDD .createFrom (gp )
9191
9292 if dotprefix != None :
93- nnf .saveSDDToDot (dotprefix + "sdd.dot" )
93+ with open (dotprefix + "sdd.dot" , "w" ) as f :
94+ print (nnf .sdd_to_dot (None ), file = f )
9495
9596 else :
9697 print ("\n === Conversion to CNF ===" )
@@ -103,7 +104,7 @@ def main(filename, with_dot, knowledge):
103104
104105 if dotprefix != None :
105106 with open (dotprefix + "nnf.dot" , "w" ) as f :
106- print (nnf .toDot (), file = f )
107+ print (nnf .to_dot (), file = f )
107108
108109 print ("\n === Evaluation result ===" )
109110 with Timer ("evaluate" ):
0 commit comments