plot adjacency graph