Refactored directed graph specs
Merge pull request #728 from prathamesh-sonpatki/directed_graph_specs

Refactored directed graph specs