DGL
0.1.x
Get Started
Install DGL
Tutorials
Basic Tutorials
Graph-based Neural Network Models
API Reference
API Reference
DGLGraph – Graph with node/edge features
Feature Initializer
BatchedDGLGraph – Enable batched graph operations
Builtin functions
Graph Traversal
Message Propagation
User-defined function related data structures
EdgeBatch
dgl.udf.EdgeBatch.src
dgl.udf.EdgeBatch.dst
dgl.udf.EdgeBatch.data
dgl.udf.EdgeBatch.edges
dgl.udf.EdgeBatch.batch_size
dgl.udf.EdgeBatch.__len__
NodeBatch
Graph samplers
Dataset
FAQ
Environment Variables
DGL
Docs
»
API Reference
»
User-defined function related data structures
»
dgl.udf.EdgeBatch.edges
Edit on GitHub
dgl.udf.EdgeBatch.edges
¶
EdgeBatch.
edges
(
)
[source]
¶
Return the edges contained in this batch.
Returns:
The edge tuple
\((src, dst, eid)\)
.
\(src[i], dst[i], eid[i]\)
separately specifies the source node, destination node and the edge id for the ith edge in the batch.
Return type:
tuple of three tensors
Read the Docs
v: 0.1.x
Versions
latest
0.1.x
Downloads
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.