AdjacencyListUndirectedGraph functions implemented