Added methods to adjacency_list.c