Update DirAcycGraph.java

modified put method