List-colouring in Python.
mhenderson / vizing Goto Github PK
View Code? Open in Web Editor NEWConstraint-based list-colouring in Python
Home Page: https://pypi.org/project/vizing/
Constraint-based list-colouring in Python
Home Page: https://pypi.org/project/vizing/
Add a NEWS file
The focus of vizing from now on is constraint modelling of list colouring.
==================================== ERRORS ====================================
__________________ ERROR collecting vizing/test_functions.py ___________________
ImportError while importing test module '/home/runner/work/vizing/vizing/vizing/test_functions.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
vizing/test_functions.py:3: in <module>
from networkx import node_clique_number
E ModuleNotFoundError: No module named 'networkx'
=========================== short test summary info ============================
ERROR vizing/test_functions.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.08s ===============================
============================= test session starts ==============================
platform linux -- Python 3.10.13, pytest-8.1.1, pluggy-1.4.0
rootdir: /home/runner/work/vizing/vizing
configfile: pyproject.toml
collected 0 items / 1 error
==================================== ERRORS ====================================
_____________________ ERROR collecting tests/test_utils.py _____________________
ImportError while importing test module '/home/runner/work/vizing/vizing/tests/test_utils.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_utils.py:1: in <module>
import networkx
E ModuleNotFoundError: No module named 'networkx'
=========================== short test summary info ============================
ERROR tests/test_utils.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.09s ===============================
Run # stop the build if there are Python syntax errors or undefined names
./vizing/test_functions.py:11:16: F821 undefined name 'graph_clique_number'
return graph_clique_number(graph.subgraph(nodes)) == 1
^
./vizing/utils.py:40:16: F821 undefined name 'graph_clique_number'
return graph_clique_number(complement(graph))
^
./vizing/utils.py:40:36: F821 undefined name 'complement'
return graph_clique_number(complement(graph))
^
3 F821 undefined name 'graph_clique_number'
3
This test should fail!
def test_clique_number():
G = networkx.complete_graph(3)
assert graph_clique_number(G) == 2
Just like listcolouring
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.