Graph adjacency list implementation