"docs/vscode:/vscode.git/clone" did not exist on "a25bcb6bd751ec2a8dc23fec2da9db5cd5171af9"
index.rst 5.58 KB
Newer Older
Minjie Wang's avatar
Minjie Wang committed
1
2
3
4
5
.. DGL documentation master file, created by
   sphinx-quickstart on Fri Oct  5 14:18:01 2018.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Minjie Wang's avatar
Minjie Wang committed
6
7
8
9
10
Overview of DGL
===============

Deep Graph Library (DGL) is a Python package built for easy implementation of
graph neural network model family, on top of existing DL frameworks (e.g.
Aston Zhang's avatar
Aston Zhang committed
11
PyTorch, MXNet, Gluon etc.).
Minjie Wang's avatar
Minjie Wang committed
12
13

DGL reduces the implementation of graph neural networks into declaring a set
VoVAllen's avatar
VoVAllen committed
14
of *functions* (or *modules* in PyTorch terminology).  In addition, DGL
Minjie Wang's avatar
Minjie Wang committed
15
16
17
18
19
20
21
22
23
24
provides:

* Versatile controls over message passing, ranging from low-level operations
  such as sending along selected edges and receiving on specific nodes, to
  high-level control such as graph-wide feature updates.
* Transparent speed optimization with automatic batching of computations and
  sparse matrix multiplication.
* Seamless integration with existing deep learning frameworks.
* Easy and friendly interfaces for node/edge feature access and graph
  structure manipulation.
Da Zheng's avatar
Da Zheng committed
25
* Good scalability to graphs with tens of millions of vertices.
Minjie Wang's avatar
Minjie Wang committed
26
27
28
29
30
31
32
33
34
35
36

To begin with, we have prototyped 10 models across various domains:
semi-supervised learning on graphs (with potentially billions of nodes/edges),
generative models on graphs, (previously) difficult-to-parallelize tree-based
models like TreeLSTM, etc. We also implement some conventional models in DGL
from a new graphical perspective yielding simplicity.

Relationship of DGL to other frameworks
---------------------------------------
DGL is designed to be compatible and agnostic to the existing tensor
frameworks. It provides a backend adapter interface that allows easy porting
37
to other tensor-based, autograd-enabled frameworks.
Minjie Wang's avatar
Minjie Wang committed
38

39
40
Getting Started
---------------
Minjie Wang's avatar
Minjie Wang committed
41

42
43
44
45
Follow the :doc:`instructions<install/index>` to install DGL.  
:doc:`DGL at a glance<tutorials/basics/1_first>` is the most common place to get started with.
It offers a broad experience of using DGL for deep learning on graph data.
You can learn other basic concepts of DGL through the dedicated tutorials.
46

47
48
49
50
* Learn constructing graphs and set/get node and edge features :doc:`here<tutorials/basics/2_basics>`.
* Learn performing computation on graph using message passing :doc:`here<tutorials/basics/3_pagerank>`.
* Learn processing multiple graph samples in a batch :doc:`here<tutorials/basics/4_batch>`.
* Learn working with heterogeneous graph data :doc:`here<tutorials/basics/5_hetero>`.
51

52
53
End-to-end model tutorials are other good starting points for learning DGL and popular
models on graphs. The model tutorials are categorized based on the way they utilize DGL APIs.
54
55
56

* :ref:`Graph Neural Network and its variant <tutorials1-index>`: Learn how to use DGL to train
  popular **GNN models** on one input graph.
57
58
* :ref:`Dealing with many small graphs <tutorials2-index>`: Learn how to train models for
  many graph samples such as sentence parse trees.
59
60
61
* :ref:`Generative models <tutorials3-index>`: Learn how to deal with **dynamically-changing graphs**.
* :ref:`Old (new) wines in new bottle <tutorials4-index>`: Learn how to combine DGL with tensor-based
  DGL framework in a flexible way. Explore new perspective on traditional models by graphs.
62
63
* :ref:`Training on giant graphs <tutorials5-index>`: Learn how to train graph neural networks
  on giant graphs.
64

65
66
67
68
69
Each tutorial is accompanied with a runnable python script and jupyter notebook that
can be downloaded. If you would like the tutorials improved, please raise a github issue.

API reference document lists more endetailed specifications of each API and GNN modules,
a useful manual for in-depth developers.
70

71
72
.. toctree::
   :maxdepth: 1
73
   :caption: Installation
74
75
76
   :hidden:
   :glob:

77
78
79
80
81
82
83
84
85
86
   install/index
   install/backend

.. toctree::
   :maxdepth: 1
   :caption: Get Started
   :hidden:
   :glob:

   tutorials/basics/index
87

88
89
.. toctree::
   :maxdepth: 3
90
   :caption: Tutorials
91
   :hidden:
Minjie Wang's avatar
Minjie Wang committed
92
   :glob:
Minjie Wang's avatar
Minjie Wang committed
93

94
   tutorials/models/index
Minjie Wang's avatar
Minjie Wang committed
95
96
97

.. toctree::
   :maxdepth: 2
Minjie Wang's avatar
Minjie Wang committed
98
   :caption: API Reference
99
   :hidden:
Minjie Wang's avatar
Minjie Wang committed
100
   :glob:
Minjie Wang's avatar
Minjie Wang committed
101

102
103
   api/python/graph
   api/python/heterograph
104
   api/python/readout
105
106
107
108
109
110
111
112
   api/python/batch_heterograph
   api/python/nn
   api/python/function
   api/python/udf
   api/python/traversal
   api/python/propagate
   api/python/transform
   api/python/sampler
113
   api/python/sampling
114
115
116
   api/python/data
   api/python/nodeflow
   api/python/random
Minjie Wang's avatar
Minjie Wang committed
117

Minjie Wang's avatar
Minjie Wang committed
118
119
.. toctree::
   :maxdepth: 1
120
   :caption: Developer Notes
121
   :hidden:
Minjie Wang's avatar
Minjie Wang committed
122
123
   :glob:

124
   contribute
125
126
127
128
129
130
131
132
   developer/ffi

.. toctree::
   :maxdepth: 1
   :caption: Misc
   :hidden:
   :glob:

Minjie Wang's avatar
Minjie Wang committed
133
134
   faq
   env_var
135
136
137
138
139
140
141
   resources

Free software
-------------
DGL is free software; you can redistribute it and/or modify it under the terms
of the Apache License 2.0. We welcome contributions.
Join us on `GitHub <https://github.com/dmlc/dgl>`_ and check out our
142
:doc:`contribution guidelines <contribute>`.
143
144
145
146
147
148
149
150
151
152
153
154
155
156

History
-------
Prototype of DGL started in early Spring, 2018, at NYU Shanghai by Prof. `Zheng
Zhang <https://shanghai.nyu.edu/academics/faculty/directory/zheng-zhang>`_ and
Quan Gan. Serious development began when `Minjie
<https://jermainewang.github.io/>`_, `Lingfan <https://cs.nyu.edu/~lingfan/>`_
and Prof. `Jinyang Li <http://www.news.cs.nyu.edu/~jinyang/>`_ from NYU's
system group joined, flanked by a team of student volunteers at NYU Shanghai,
Fudan and other universities (Yu, Zihao, Murphy, Allen, Qipeng, Qi, Hao), as
well as early adopters at the CILVR lab (Jake Zhao). Development accelerated
when AWS MXNet Science team joined force, with Da Zheng, Alex Smola, Haibin
Lin, Chao Ma and a number of others. For full credit, see `here
<https://www.dgl.ai/ack>`_.
Minjie Wang's avatar
Minjie Wang committed
157

Minjie Wang's avatar
Minjie Wang committed
158
159
160
Index
-----
* :ref:`genindex`