basic adjacency graph