Fix failing SaveLoadExamples example.
@@ -13,6 +13,7 @@ import io.improbable.keanu.vertices.Vertex;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.util.Collections;
public class SaveLoadExamples {
@@ -50,7 +51,7 @@ public class SaveLoadExamples {
OutputStream outputStream,
boolean saveValuesAndObservations) throws IOException {
DotSaver saver = new DotSaver(net);
- saver.save(outputStream, startingVertex, degree, saveValuesAndObservations);
+ saver.save(outputStream, Collections.singletonList(startingVertex), degree, saveValuesAndObservations);
}
//%%SNIPPET_END%% SavePartialToDot
