I am solving a problem on directed acyclic graph. 

But I am having trouble testing my code on some directed acyclic graphs. The test graphs should be large, and (*obviously*) acyclic. 

I tried a lot to write code for generating acyclic directed graphs. But I failed every time. 

Is there some existing method to generate acyclic directed graphs I could use?