get_adj_list function

Generic for Getting Adjacency List