Basic functions of a adjacency list