def setUp(self): self.G = DenseAdjacencyMatrixGraph(ADJ) self.S = SparseAdjacencyMatrixGraph(csr_matrix(ADJ))