Simplyify building of ArrayBasedDirectedGraph. 

Lots of noise in the code that doesn't achieve anything.