Updated DirectedGraph, implemented a few methods