def test_adjacency(self):
        for G, A in self.GA:
            a_adj = list(A.adjacency())
            for n, nbrs in G.adjacency():
                assert_true((n, set(nbrs)) in a_adj)
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/approximation/tests/test_kcomponents.py/TestAntiGraph.test_adjacency/original