Graph: adjacency list template