added code for reading adjacency list files