Simplyify building of ArrayBasedDirectedGraph.