added adjacency list output option