a81d27dc67a9c14435b3bd9bf7122fa0871bf76e,python/dgl/cgraph.py,DGLGraph,out_edges,#DGLGraph#Any#,82
Before Change
return src, dst, eid
def out_edges(self, v):
if isinstance(v, int):
edge_array = _CAPI_DGLGraphOutEdges_1(self._handle, v)
else:
v = utils.Index(v)
v_array = F.asdglarray(v.totensor())
edge_array = _CAPI_DGLGraphOutEdges_2(self._handle, v_array)
src = edge_array(0)
dst = edge_array(1)
After Change
v_array = v.todgltensor()
edge_array = _CAPI_DGLGraphOutEdges_2(self._handle, v_array)
src = utils.Index(edge_array(0))
dst = utils.Index(edge_array(1))
eid = utils.Index(edge_array(2))
return src, dst, eid
def edges(self, sorted=False):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: out_edges
Project Name: bokeh/bokeh
Commit Name: 3c8314eafc16c5c363c75a57320843036f459196
Time: 2018-07-31
Author: karelvandeplassche@gmail.com
File Name: bokeh/models/sources.py
Class Name: ColumnDataSource
Method Name: _data_from_df
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: in_edges