def testCount4Graphlets(self):
        graphlets4 = allgraphlets._generate_graphlets(4)
        for i, graph_array in enumerate(self.data4):
            for j, graph in enumerate(graph_array):
                count = allgraphlets._count_graphlets(graph, 4, graphlets4)
                for g_num in self.gr4[i][j]:
                    self.assertTrue((np.absolute(count-g_num)<self.tol).any())
                self.assertTrue((count==0).sum() == 7 + (self.gr4[i][j]==0).sum())
dataset/ETHPy150Open gmum/pykernels/tests/graphlets.py/TestGraphlet.testCount4Graphlets/original