Skip to content

Commit

Permalink
[Doc] Computing with DGLGraph (dmlc#212)
Browse files Browse the repository at this point in the history
* Docs for graph computing

* Docs for graph computing

* Fix

* WIP

* update the docstring
  • Loading branch information
mufeili authored and jermainewang committed Dec 4, 2018
1 parent c99f423 commit 7cca500
Show file tree
Hide file tree
Showing 2 changed files with 714 additions and 122 deletions.
10 changes: 10 additions & 0 deletions docs/source/api/python/udf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ User-defined function related data structures
==================================================

.. currentmodule:: dgl.udf
.. automodule:: dgl.udf

There are two types of user-defined functions in DGL:

* **Node UDF** of signature ``NodeBatch -> dict``. The argument represents
a batch of nodes. The returned dictionary should have ``str`` type key and ``tensor``
type values.
* **Edge UDF** of signature ``EdgeBatch -> dict``. The argument represents
a batch of edges. The returned dictionary should have ``str`` type key and ``tensor``
type values.

EdgeBatch
---------
Expand Down
Loading

0 comments on commit 7cca500

Please sign in to comment.