Python library assists deep learning on graphs
See the codeDocumentation | Examples | Colab Notebooks
DeepSNAP is a Python library to assist efficient deep learning on graphs. DeepSNAP features in its support for flexible graph manipulation, standard pipeline, heterogeneous graphs and simple API.
DeepSNAP bridges powerful graph libraries such as NetworkX and deep learning framework PyTorch Geometric. With an intuitive and easy-than-ever API, DeepSNAP addresses the above pain points:
To install the DeepSNAP, ensure PyTorch Geometric and NetworkX are installed. Then:
$ pip install deepsnap
Or build from source:
$ git clone https://github.com/snap-stanford/deepsnap
$ cd deepsnap
$ pip install .
Examples using DeepSNAP are provided within the code repository.
$ git clone https://github.com/snap-stanford/deepsnap
Node classification:
$ cd deepsnap/examples/node_classification # node classification
$ python node_classification_planetoid.py
Link prediction:
$ cd deepsnap/examples/link_prediction # link prediction
$ python link_prediction_cora.py
Graph classification:
$ cd deepsnap/examples/graph_classification # graph classification
$ python graph_classification_TU.py
For comprehensive overview, introduction, tutorial and example, please refer to Full Documentation
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
232 followers · starred Jul 2021
78 followers · starred Oct 2023
32 followers · starred Aug 2020
Python library assists deep learning on graphs
See the codeDocumentation | Examples | Colab Notebooks
DeepSNAP is a Python library to assist efficient deep learning on graphs. DeepSNAP features in its support for flexible graph manipulation, standard pipeline, heterogeneous graphs and simple API.
DeepSNAP bridges powerful graph libraries such as NetworkX and deep learning framework PyTorch Geometric. With an intuitive and easy-than-ever API, DeepSNAP addresses the above pain points:
To install the DeepSNAP, ensure PyTorch Geometric and NetworkX are installed. Then:
$ pip install deepsnap
Or build from source:
$ git clone https://github.com/snap-stanford/deepsnap
$ cd deepsnap
$ pip install .
Examples using DeepSNAP are provided within the code repository.
$ git clone https://github.com/snap-stanford/deepsnap
Node classification:
$ cd deepsnap/examples/node_classification # node classification
$ python node_classification_planetoid.py
Link prediction:
$ cd deepsnap/examples/link_prediction # link prediction
$ python link_prediction_cora.py
Graph classification:
$ cd deepsnap/examples/graph_classification # graph classification
$ python graph_classification_TU.py
For comprehensive overview, introduction, tutorial and example, please refer to Full Documentation
Overall
Maintained
Code review
PyPI
Latest release
Releases this year
232 followers · starred Jul 2021
78 followers · starred Oct 2023
32 followers · starred Aug 2020