b2e4bdc03f019b886350aff5b0ffdff6f4372843,tests/pytorch/test_batching_anonymous.py,,generate_graph,#Any#,24

Before Change



def generate_graph(grad=False):
    g = DGLGraph()
    for i in range(10):
        g.add_node(i) // 10 nodes.
    // create a graph where 0 is the source and 9 is the sink
    for i in range(1, 9):
        g.add_edge(0, i)
        g.add_edge(i, 9)
    // add a back flow from 9 to 0

After Change



def generate_graph(grad=False):
    g = DGLGraph()
    g.add_nodes(10)
    // create a graph where 0 is the source and 9 is the sink
    for i in range(1, 9):
        g.add_edge(0, i)
        g.add_edge(i, 9)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 5

Instances


Project Name: dmlc/dgl
Commit Name: b2e4bdc03f019b886350aff5b0ffdff6f4372843
Time: 2018-09-20
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_batching_anonymous.py
Class Name:
Method Name: generate_graph


Project Name: dmlc/dgl
Commit Name: 7b5d4c588637ca05ff4dc36e910e5e4ac35e652a
Time: 2018-09-20
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_specialization.py
Class Name:
Method Name: generate_graph


Project Name: dmlc/dgl
Commit Name: b2e4bdc03f019b886350aff5b0ffdff6f4372843
Time: 2018-09-20
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_function.py
Class Name:
Method Name: generate_graph1


Project Name: dmlc/dgl
Commit Name: b2e4bdc03f019b886350aff5b0ffdff6f4372843
Time: 2018-09-20
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_batching.py
Class Name:
Method Name: generate_graph


Project Name: dmlc/dgl
Commit Name: b2e4bdc03f019b886350aff5b0ffdff6f4372843
Time: 2018-09-20
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_function.py
Class Name:
Method Name: generate_graph


Project Name: dmlc/dgl
Commit Name: 72f634551596eeaf99f9c9344084c72be063e4c1
Time: 2018-10-05
Author: wmjlyjemaine@gmail.com
File Name: tests/pytorch/test_subgraph.py
Class Name:
Method Name: generate_graph