444becf00a10f74d6d6c7187798706355ca05612,python/dgl/data/gnn_benckmark.py,GNNBenchmarkDataset,load_npz,#GNNBenchmarkDataset#Any#,36
Before Change
else:
labels = None
g = DGLGraph()
g.add_nodes(num_nodes)
g.add_edges(adj_matrix.row, adj_matrix.col)
g.add_edges(adj_matrix.col, adj_matrix.row)
g.ndata["feat"] = attr_matrix
g.ndata["label"] = labels
After Change
else:
labels = None
row = np.hstack([adj_matrix.row, adj_matrix.col])
col = np.hstack([adj_matrix.col, adj_matrix.row])
g = convert.graph((row, col))
g.ndata["feat"] = attr_matrix
g.ndata["label"] = labels
return g
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: 444becf00a10f74d6d6c7187798706355ca05612
Time: 2020-07-30
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/data/gnn_benckmark.py
Class Name: GNNBenchmarkDataset
Method Name: load_npz
Project Name: dmlc/dgl
Commit Name: 2cdc4d3c1d17e1ac8be1c44ca54d772084c76f18
Time: 2020-03-21
Author: wmjlyjemaine@gmail.com
File Name: tutorials/basics/1_first.py
Class Name:
Method Name: build_karate_club_graph
Project Name: dmlc/dgl
Commit Name: 545cc065c08cdc1ea0e3092bb6956edc17163c34
Time: 2020-03-13
Author: mufeili1996@gmail.com
File Name: apps/life_sci/dgllife/utils/mol_to_graph.py
Class Name:
Method Name: construct_complete_graph_from_mol