From 1bef493cb81e54fdd67201d9e5065470906df34e Mon Sep 17 00:00:00 2001 From: Matthew Henderson Date: Mon, 9 Dec 2024 09:55:17 +0000 Subject: [PATCH 1/2] Remove a pointless list comprehension. --- src/vizing/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vizing/__init__.py b/src/vizing/__init__.py index 4468644..c185180 100644 --- a/src/vizing/__init__.py +++ b/src/vizing/__init__.py @@ -40,8 +40,8 @@ def edge_list_colouring_problem(G, directed = False): P.addVariable(edge, G.edges[edge]['permissible']) if(directed): for node in G.nodes(): - P.addConstraint(ct.AllDifferentConstraint(), [x for x in G.out_edges(node)]) - P.addConstraint(ct.AllDifferentConstraint(), [x for x in G.in_edges(node)]) + P.addConstraint(ct.AllDifferentConstraint(), G.out_edges(node)) + P.addConstraint(ct.AllDifferentConstraint(), G.in_edges(node)) else: for node in G.nodes(): P.addConstraint(ct.AllDifferentConstraint(), [tuple(sorted(x)) for x in G.edges(node)]) From 275800a21422f7d33a7c4d821652acd2ea4581ee Mon Sep 17 00:00:00 2001 From: Matthew Henderson Date: Mon, 9 Dec 2024 09:56:06 +0000 Subject: [PATCH 2/2] Bump dev version number: v0.2.1 -> v0.2.1.9000. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5d9cbb7..2c1fb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "vizing" -version = "0.2.1" +version = "0.2.1.9000" description = "Constraint-based list-colouring in Python." authors = ["Matthew Henderson "] readme = "README.md"