dc045bebd58dbf547728ff2f34e1d9a0fcb916f9,test/aqua/test_graph_partition.py,TestGraphPartition,setUp,#TestGraphPartition#,30

Before Change


        self.num_nodes = 4
        self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
        self.qubit_op, self.offset = graph_partition.get_operator(self.w)
        self.algo_input = EnergyInput(self.qubit_op)

    def _brute_force(self):
        // use the brute-force way to generate the oracle
        def bitfield(n, length):

After Change



    def setUp(self):
        super().setUp()
        warnings.filterwarnings("ignore", message=aqua_globals.CONFIG_DEPRECATION_MSG,
                                category=DeprecationWarning)
        aqua_globals.random_seed = 100
        self.num_nodes = 4
        self.w = random_graph(self.num_nodes, edge_prob=0.8, weight_range=10)
        self.qubit_op, self.offset = graph_partition.get_operator(self.w)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: Qiskit/qiskit-aqua
Commit Name: dc045bebd58dbf547728ff2f34e1d9a0fcb916f9
Time: 2019-11-08
Author: manoel@us.ibm.com
File Name: test/aqua/test_graph_partition.py
Class Name: TestGraphPartition
Method Name: setUp


Project Name: Qiskit/qiskit-aqua
Commit Name: d04a79bb822fe39a32ebf103b30736ea72a4c29d
Time: 2019-11-07
Author: manoel@us.ibm.com
File Name: test/aqua/test_clique.py
Class Name: TestClique
Method Name: setUp


Project Name: Qiskit/qiskit-aqua
Commit Name: dc045bebd58dbf547728ff2f34e1d9a0fcb916f9
Time: 2019-11-08
Author: manoel@us.ibm.com
File Name: test/aqua/test_vertex_cover.py
Class Name: TestVertexCover
Method Name: setUp