Update DirAcycGraph.java

basics for containsVal, containsKey