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
clone the repository
- ssh:
git clone git@github.com:aalok-sathe/coloring-graphs
- https:
git clone https://github.com/aalok-sathe/coloring-graphs
go into the repository
cd coloring-graphs
install
make install
- ssh:
-
python3 -m pip install libcolgraph [--user]
issues:
- currently a binary wheel is available only for
manylinux
enabled distributions e.g. centOS - if your distribution is not one of these, then pip will want to
compile locally using
setup.py
. in that case, make sure you have swig installed, as it will be needed for compilation.
- currently a binary wheel is available only for
-
-
quickstart:
- usage:
import libcolgraph g = libcolgraph.Graph() g.load_txt('./test/input/g1.in')
-
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
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.post8-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51c445eac74059fd8776b1af65a8b6cf851c15bd4033d60ede23fe78718b9edc |
|
MD5 | 86f4b7bb27d245df9f234ee8ea6558bf |
|
BLAKE2b-256 | 5c7e14b7898bfd18f6b146c3a94e32e966965f4c503e5b3ccc372f75522ac817 |