graph format converter in external memory from edge stream to adjacency lists