Home

Awesome

<p align="center"> <img width="50%" src="https://raw.githubusercontent.com/ysig/GraKeL/0.1a7/doc/_figures/logo.svg?sanitize=true" /> </p>

[!NOTE] GraKeL needs your support! Our goal with GraKeL was to have a stable library for graph kernels but as tools change it requires maintenance: Lots of libraries change requiring constant pull requests to keep up with newer python/numpy versions, or for example modernizing our ci-cycle was not finalized and the owner currently lacks knowledge and time to go over changes. If there is a community of researchers that want to be part of grakel's support please reach out, to ioannis <dot> siglidis <at> enpc <dot> fr and we would be happy to gradually move you into maintenance. Thank you! 💕

Pypi Versions Coverage Status CircleCI Status

Documentation | Paper

GraKeL is a library that provides implementations of several well-established graph kernels. The library unifies these kernels into a common framework. Furthermore, it provides implementations of some frameworks that work on top of graph kernels. Specifically, GraKeL contains 16 kernels and 2 frameworks. The library is compatible with the scikit-learn pipeline allowing easy and fast integration inside machine learning algorithms.


In detail, the following kernels and frameworks are currently implemented:


To learn how to install and use GraKeL, and to find out more about the implemented kernels and frameworks, please read our documentation. To learn about the functionality of the library and about example applications, check out our examples in the examples/ directory and our tutorials in the tutorials/ directory.

In case you find a bug, please open an issue. To propose a new kernel, you can open a feature request.

Installation

The GraKeL library requires the following packages to be installed:

To install the package, run:

$ pip install grakel

Running tests

To test the package, execute:

$ pytest

Running examples

$ cd examples
$ python shortest_path.py

Cite

If you use GraKeL in a scientific publication, please cite our paper (http://jmlr.org/papers/volume21/18-370/18-370.pdf):

@article{JMLR:v21:18-370,
  author  = {Giannis Siglidis and Giannis Nikolentzos and Stratis Limnios and Christos Giatsidis and Konstantinos Skianis and Michalis Vazirgiannis},
  title   = {GraKeL: A Graph Kernel Library in Python},
  journal = {Journal of Machine Learning Research},
  year    = {2020},
  volume  = {21},
  number  = {54},
  pages   = {1-5}
}

License

GraKeL is distributed under the BSD 3-clause license. The library makes use of the C++ source code of BLISS (a tool for computing automorphism groups and canonical labelings of graphs) which is LGPL licensed. Futhermore, the cvxopt package (a software package for convex optimization) which is an optional dependency of GraKeL is GPL licensed.

Acknowledgements

We would like to thank @eddiebergman for modernizing our CI and extending our python support.