this library provides support to construct graphs and their coloring graphs. a coloring graph is a metagraph representing all the valid colorings of a graph. each vertex of a coloring graph represents a coloring of the base graph.
Project description
coloring-graphs
a coloring graphs library written in C++ for speedy computation and wrapped in Python for ease of development and extension!
what
this library provides support to construct graphs and their coloring graphs. a coloring graph is a metagraph representing all the valid colorings of a graph. each vertex of a coloring graph represents a coloring of the base graph.
in this project, we represent a coloring as an integer, which, when converted to base k (for a k-coloring), represents the vertex-wise colors [0,k).
the library is under development being written using Python and C/C++.
for documentation, feel free to take a look inside libcolgraph/
and read the docstrings.
for examples, see the files in test/
.
for questions, reach out.
how
-
installation:
-
manual installation
refer to detailed install instructions
-
python3 -m pip install libcolgraph [--user]
things to note:
- currently a binary wheel is available only for
manylinux
distributions e.g. centOS, Debian family, RedHat family, etc. - if your distribution is not
manylinux
-supported, then pip will need to compile locally usingswig
andsetuptools
. in that case, make sure you havesetuptools
and swig installed, as they will be needed for compilation. - in the future we will release wheels for MacOS as well. these
might not be as frequently maintained, however, so your best
bet would be to compile locally using
swig
.
- currently a binary wheel is available only for
-
-
quickstart:
- usage:
import libcolgraph g = libcolgraph.Graph() g.load_txt('./test/input/g1.in') g.add_vertex(314) print(g.size())
-
run a test suite!
make test
-
try the sandbox file (
test/sandbox.py
) to see how plotting works (currently pure python-only)python3 test/sandbox.py 3
python3 test/sandbox.py 3 test/input/g1.in
contribute
help
full documentation coming soon
who
Coloring Graphs lab, University of Richmond. Multiple contributors.
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
Built Distribution
Hashes for libcolgraph-0.0.1.post9-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a81bac4b64059935880dff347d737e98aa73545558e9eb9df1af2daa69c342d9 |
|
MD5 | 20e559c048797809f103639b3e534c19 |
|
BLAKE2b-256 | 9a41db17578fbd6462f011eaeea8c63f5c787447b002bce710784308da2f8110 |