def check_model(self):
        if not nx.is_connected(self):
            raise ValueError('The Junction Tree defined is not fully connected.')

        return super(JunctionTree, self).check_model()
Testing ReviewBoardGateway get_commits implementation
dataset/ETHPy150Open pgmpy/pgmpy/pgmpy/models/JunctionTree.py/JunctionTree.check_model--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/tests/test_rbgateway.py/ReviewBoardGatewayTests.test_get_commits