Update Network.java

Allow for multiple graph generations