Implemented Directed Graph