68a978d4de27b6625870e1ea4242075e990922f4,examples/pytorch/jtnn/jtnn/mol_tree_nx.py,DGLMolTree,__init__,#DGLMolTree#Any#,8
Before Change
dst[2 * i] = y
src[2 * i + 1] = y
dst[2 * i + 1] = x
self.add_edges(src, dst)
for i in self.nodes_dict:
self.nodes_dict[i]["nid"] = i + 1
if self.out_degree(i) > 1: // Leaf node mol is not marked
After Change
self.nodes_dict = {}
if smiles is None:
self.graph = dgl.graph(([], []))
return
self.smiles = smiles
self.mol = get_mol(smiles)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: dmlc/dgl
Commit Name: 68a978d4de27b6625870e1ea4242075e990922f4
Time: 2020-07-29
Author: coin2028@hotmail.com
File Name: examples/pytorch/jtnn/jtnn/mol_tree_nx.py
Class Name: DGLMolTree
Method Name: __init__
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: 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: 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