get_adj_list function

Returns an adjacency list from an edge list