Split adjacency list into files for base al and Directed.