Added GraphConstructor and cycle detector in directed graph.