Skip to content

Commit

Permalink
[Doc] Tutorials re-organization (dmlc#2683)
Browse files Browse the repository at this point in the history
* reorg

* change titles

* rm some stale API doc; minor fix

* fix docs

* add warning

* rm new-tutorial run in ci

* lint
  • Loading branch information
jermainewang authored Feb 20, 2021
1 parent 0fc6495 commit 8a07ab7
Show file tree
Hide file tree
Showing 68 changed files with 264 additions and 2,177 deletions.
1 change: 1 addition & 0 deletions docs/source/api/python/dgl.dataloading.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and an ``EdgeDataLoader`` for edge/link prediction task.
.. autoclass:: GraphDataLoader

.. _api-dataloading-neighbor-sampling:

Neighbor Sampler
-----------------------------
.. currentmodule:: dgl.dataloading.neighbor
Expand Down
27 changes: 25 additions & 2 deletions docs/source/api/python/dgl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,33 @@ Utilities for computing adjacency matrix and Lapacian matrix.
khop_adj
laplacian_lambda_max

Traversals
Graph Traversal & Message Propagation
------------------------------------------

Utilities for traversing graphs.
DGL implements graph traversal algorithms implemented as python generators,
which returns the visited set of nodes or edges (in ID tensor) at each iteration.
The naming convention is ``<algorithm>_[nodes|edges]_generator``.
An example usage is as follows.

.. code:: python
g = ... # some DGLGraph
for nodes in dgl.bfs_nodes_generator(g, 0):
do_something(nodes)
.. autosummary::
:toctree: ../../generated/

bfs_nodes_generator
bfs_edges_generator
topological_nodes_generator
dfs_edges_generator
dfs_labeled_edges_generator

DGL provides APIs to perform message passing following graph traversal order. ``prop_nodes_XXX``
calls traversal algorithm ``XXX`` and triggers :func:`~DGLGraph.pull()` on the visited node
set at each iteration. ``prop_edges_YYY`` applies traversal algorithm ``YYY`` and triggers
:func:`~DGLGraph.send_and_recv()` on the visited edge set at each iteration.

.. autosummary::
:toctree: ../../generated/
Expand Down
169 changes: 0 additions & 169 deletions docs/source/api/python/graph.rst

This file was deleted.

47 changes: 0 additions & 47 deletions docs/source/api/python/graph_store.rst

This file was deleted.

Loading

0 comments on commit 8a07ab7

Please sign in to comment.