f35ac5443e5028bd677d844cb1e7d724c4d41900,python/dgl/graph_index.py,GraphIndex,add_edges,#GraphIndex#Any#Any#,57
Before Change
u_array = u.todgltensor()
v_array = v.todgltensor()
_CAPI_DGLGraphAddEdges(self._handle, u_array, v_array)
self._cache.clear()
def clear(self):
Clear the graph.
_CAPI_DGLGraphClear(self._handle)
After Change
u_array = u.todgltensor()
v_array = v.todgltensor()
_CAPI_DGLGraphAddEdges(self._handle, u_array, v_array)
self.clear_cache()
def clear(self):
Clear the graph.
_CAPI_DGLGraphClear(self._handle)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: dmlc/dgl
Commit Name: f35ac5443e5028bd677d844cb1e7d724c4d41900
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: add_edges
Project Name: dmlc/dgl
Commit Name: f35ac5443e5028bd677d844cb1e7d724c4d41900
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: clear
Project Name: dmlc/dgl
Commit Name: f35ac5443e5028bd677d844cb1e7d724c4d41900
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: add_nodes
Project Name: dmlc/dgl
Commit Name: f35ac5443e5028bd677d844cb1e7d724c4d41900
Time: 2018-12-16
Author: minjie.wang@nyu.edu
File Name: python/dgl/graph_index.py
Class Name: GraphIndex
Method Name: add_edge