Update BasicGraph.java

Add helper methods for basic testing of Analysis.java