Starting directed graph implementation.