A graph theory library written in Cython
Project description
cygraph
A graph theory library implemented in Cython
Installation
With pip
pip install cygraph
From source
git clone 'https://github.com/lol-cubes/cygraph.git'
cd cygraph
python3 setup.py install
Usage
Here is a basic example of some features in cygraph.
>>> import cygraph as cg
>>> import cygraph.algorithms as alg
>>> G = cg.graph(vertices=list(range(4)))
>>> G.add_edge(1, 2)
>>> G.add_edge(2, 3)
>>> G.add_edge(3, 1)
>>> G.get_children(1)
{2, 3}
>>> alg.get_number_components(G)
2
For more information on the Python and Cython APIs, see the documentation
Contribution
I am currently not accepting any pull requests. This project is still in its very early stages and I have many things in mind to do with it. Once I get those things done, I will add contribution guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cygraph-0.1.0.tar.gz
(859.8 kB
view hashes)
Built Distributions
Close
Hashes for cygraph-0.1.0-py3.8-macosx-10.9-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61be8ddf8f79647ed9656408db0216a9fad76c543663c6bdd305e673371fa472 |
|
MD5 | 90d54658e7b17467a20d6c4d20006543 |
|
BLAKE2b-256 | ce787dcf1dc3860f13180ea54fbbe0dac5def76c140820d5712ceaf223c0e8be |
Close
Hashes for cygraph-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93dbe114725260dab9b8826dc16c594731748ce512725149a007c86b4445eda1 |
|
MD5 | 6572c53cb4be5900361a178c25f37f13 |
|
BLAKE2b-256 | 39bbeeda13d3985e1656f14c43ae516f9d4b9916f20853d6166c2d03795c4d00 |