Show below, there are three sets of APIs for different models.
update_all
,proppagate
are more globalupdate_by_edge
,update_to
andupdate_from
give finer control when updates are applied to a path, or a group of nodessendto
andrecvfrom
are the bottom primitives that update a message and node.
- Always choose the API at the highest possible level.
- Refer to the GCN example to see how to register message and node update functions;
Before building, make sure that the submodules are cloned. If you haven't initialized the submodules, run
$ git submodule init
To sync the submodules, run
$ git submodule update
At the root directory of the repo:
$ mkdir build
$ cd build
$ cmake ..
$ make
$ export DGL_LIBRARY_PATH=$PWD
The DGL_LIBRARY_PATH
environment variable should point to the library libdgl.so
built by CMake.