diff --git a/src/main/java/GraphDataObjectReader.java b/src/main/java/GraphDataObjectReader.java index 8e883ee..ff7edb4 100644 --- a/src/main/java/GraphDataObjectReader.java +++ b/src/main/java/GraphDataObjectReader.java @@ -4,7 +4,7 @@ public class GraphDataObjectReader { private GraphWithMapData data; private String filename; - private boolean verbose = true; + public GraphDataObjectReader(String filename, boolean verbose) throws IOException { if(!filename.matches(".*\\.ser")){ @@ -15,7 +15,7 @@ public class GraphDataObjectReader { BufferedInputStream fileIn = new BufferedInputStream(new FileInputStream(filename)); ObjectInputStream in = new ObjectInputStream(fileIn)) { - if (this.verbose) { + if (verbose) { System.out.println("Reading graph data from file. This may take some time"); System.out.println("File I/O time is not included in results"); }