Skip to content

Commit

Permalink
[Doc] docstring for BatchedDGLGraph + some fix (dmlc#184)
Browse files Browse the repository at this point in the history
* Update doc

* Update batched_graph.py

* Fix

* Fix

* Fix

* Fix
  • Loading branch information
mufeili authored and jermainewang committed Nov 29, 2018
1 parent e17c41c commit 8dc6784
Show file tree
Hide file tree
Showing 2 changed files with 416 additions and 66 deletions.
28 changes: 25 additions & 3 deletions docs/source/api/python/batch.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
BatchedDGLGraph
===============
.. _apibatch:

.. automodule:: dgl.batched_graph
BatchedDGLGraph -- Enable batched graph operations
==================================================

.. currentmodule:: dgl
.. autoclass:: BatchedDGLGraph

Merge and decompose
-------------------

.. autosummary::
:toctree: ../../generated/

batch
unbatch

Query batch summary
----------------------

.. autosummary::
:toctree: ../../generated/

BatchedDGLGraph.batch_size
BatchedDGLGraph.batch_num_nodes
BatchedDGLGraph.batch_num_edges

Graph Readout
-------------

.. autosummary::
:toctree: ../../generated/

sum_nodes
sum_edges
mean_nodes
Expand Down
Loading

0 comments on commit 8dc6784

Please sign in to comment.