a81d27dc67a9c14435b3bd9bf7122fa0871bf76e,python/dgl/cgraph.py,DGLGraph,add_edges,#DGLGraph#Any#Any#,20
Before Change
_CAPI_DGLGraphAddEdge(self._handle, u, v);
def add_edges(self, u, v):
u = utils.Index(u)
v = utils.Index(v)
u_array = F.asdglarray(u.totensor())
v_array = F.asdglarray(v.totensor())
_CAPI_DGLGraphAddEdges(self._handle, u_array, v_array)
def clear(self):
_CAPI_DGLGraphClear(self._handle)
After Change
//u_array = F.asdglarray(u.totensor())
//v_array = F.asdglarray(v.totensor())
u_array = u.todgltensor()
v_array = v.todgltensor()
_CAPI_DGLGraphAddEdges(self._handle, u_array, v_array)
def clear(self):
Clear the graph.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: add_edges
Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: add_edges
Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: edge_ids
Project Name: dmlc/dgl
Commit Name: a81d27dc67a9c14435b3bd9bf7122fa0871bf76e
Time: 2018-09-19
Author: wmjlyjemaine@gmail.com
File Name: python/dgl/cgraph.py
Class Name: DGLGraph
Method Name: has_edges