This guide will tell how to contribute to pyGOD at the beginning stage. This guide may change subject to the development process. Part of this guide is from DGL docs.
For python codes, we generally follow the PEP8 style guide. The python comments follow NumPy style python docstrings.
We tweak it a little bit from the standard. For example, following variable names are accepted:
i,j,k
: for loop variablesu,v
: for representing nodese
: for representing edgesg
: for representing graphfn
: for representing functionsn,m
: for representing sizesw,x,y
: for representing weight, input, output tensors_
: for unused variables
To prevent the problems induced by inconsistent versions of dependencies, following requirements are suggested.
python>=3.7 torch>=1.10.1 torch_geometry>=2.0.4
To contribute a new model , simply
-
Make a directory with the name of your model (say
awesome-gnn
) within the directorypygod/models
. -
Populate it with your work, along with a README. Make a pull request once you are done. Your README should contain the instructions for running your program.
-
Commit and push to the master branch (only at the very beginning stage).