Update Graph.java

Added getNodes() and getConnections()