Update Parser.java

Allow for multiple graph generation