Graph theoretic classes and helper functions.
Project description
Graphworks
A Python module for efficient graph theoretic programming
NOTE This is a very old project I created for my undergrad capstone project. It's not in a working state at the moment, but I'm bringing it back to life.
Usage
TODO
Development
Requirements
- Python 3.9+
- virtualenv
- numpy
- graphviz
Install the required packages
pip install virtualenv
virtualenv env
Start the virtualenv
source ./env/bin/activate
You can deactivate the virtualenv with
deactivate
Lastly, install the required libraries
pip install -r requirements.txt
Building the package
- Update the version number in
setup.py
- Run
python setup.py sdist bdist_wheel
- Run
twine check dist/*
- Upload to test PyPi:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
- Upload to PyPi main:
twine upload --skip-existing dist/*
Diagnostics
- Run the unit tests:
python -m unittest discover tests '*_tests.py'
- Run unit test coverage:
coverage run --source=graphworks/ -m unittest discover tests '*_tests.py'
- Generate test coverage reports (either works):
coverage report --omit="*/test*,*/venv/*"
coverage html --omit="*/test*,*/venv/*"
TODO
- Create the documentation for usage
- Searching/Sorting
- https://www.python-course.eu/graphs_python.php
- Build out directed graphs algorithms
- Hierholzer’s Algorithm
- https://algs4.cs.princeton.edu/42digraph/
- Allow for weighted graph algorithms
- Jarnik's algorithm
- Dijkstra's algorithm
- C++ binaries for speeding up graph computations
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
graphworks-0.1.5.tar.gz
(13.8 kB
view details)
Built Distribution
File details
Details for the file graphworks-0.1.5.tar.gz
.
File metadata
- Download URL: graphworks-0.1.5.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c984e7d03ce368c934df215a1bccf2ddca0a8bef78c7c339f7f1b9f31bdcd38 |
|
MD5 | 2787ca205238f6f2ecca9132cc76f705 |
|
BLAKE2b-256 | 27b0829cfdc5b2714c4f6c0a1a0c3b10bc326e1254e4174b4205029f331ffe98 |
File details
Details for the file graphworks-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: graphworks-0.1.5-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3612f335c7ada90f6208230bb47dee3acc7968c3614232a91fa92f5dafe55c5 |
|
MD5 | b8b678b74100377657aed89ca089e0b6 |
|
BLAKE2b-256 | f5be3e313c1e1e2adc70addeb5abf8fa6495ac4d49c8f772218d220ad9170471 |