Update DirAcycGraph.java

Modified the containsKey and containsValue methods.