adjacency matrix + list comparison