A graph theory library written in Cython
Project description
cygraph
A graph theory library implemented in Cython
Installation
pip install cygraph
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.1.tar.gz
(801.4 kB
view hashes)
Built Distribution
Close
Hashes for cygraph-0.1.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b19c728dca4f17885bde000e7ffec7da0aae41c6de024be942f9d12a86ddece |
|
MD5 | 2b3055625c349f908b1674e76222ea8e |
|
BLAKE2b-256 | e57b3a29b0b0bd65e4fe94915bb916ba5d75ef665ab5e7ffa7a012807b98add2 |