Skip to content

Commit

Permalink
[Doc] Add DGLSubGraph, and DGLGraph.readonly() interface to docs (dml…
Browse files Browse the repository at this point in the history
…c#421)

* fix rgcn tutorial

* small fix

* upd

* findedge/s

* upd

* upd

* upd

* upd

* add test

* remove redundancy

* upd

* upd

* upd

* upd

* add edge_subgraph

* explicit cast

* add test immutable subg

* reformat

* reformat

* fix bug

* upd

* hotfix

* subgraph docs
  • Loading branch information
yzh119 authored and jermainewang committed Mar 1, 2019
1 parent bea07b4 commit dba2a5b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/api/python/graph.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ Transforming graph
DGLGraph.edge_subgraph
DGLGraph.line_graph
DGLGraph.reverse
DGLGraph.readonly

Converting from/to other format
-------------------------------
Expand Down
22 changes: 22 additions & 0 deletions docs/source/api/python/subgraph.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.. _apigraph:

DGLSubGraph -- Class for subgraph data structure
=========================================

.. currentmodule:: dgl
.. autoclass:: DGLSubGraph

Mapping between subgraph and parent graph
-------------------------------------
:toctree: ../../generated/

DGLSubGraph.parent_nid
DGLSubGraph.parent_eid
DGLSubGraph.map_to_subgraph_nid

Synchronize features between subgraph and parent graph
------------------------------------------------------
:toctree: ../../generated/

DGLSubGraph.copy_from_parent
DGLSubGraph.copy_to_parent

0 comments on commit dba2a5b

Please sign in to comment.