Added examples example_sprinkler_gibbs and example_sprinkler_em
[libdai.git] / swig / example_sprinkler.m
index b714b89..c7b83de 100644 (file)
@@ -61,9 +61,7 @@ SprinklerNetwork = dai.FactorGraph(SprinklerFactors);
 
 % Write factorgraph to a file
 SprinklerNetwork.WriteToFile('sprinkler.fg');
-
-% Reread the factorgraph from the file
-SprinklerNetwork.ReadFromFile('sprinkler.fg');
+fprintf('Sprinkler network written to sprinkler.fg');
 
 % Output some information about the factorgraph
 fprintf('%d variables\n', SprinklerNetwork.nrVars());