diff --git a/TODO b/TODO new file mode 100644 index 0000000..18b0f9d --- /dev/null +++ b/TODO @@ -0,0 +1,4 @@ +Next things to do: + - Read A&B code which expresses C(1) as products of sqrt(iX), sqrt(iY) + - Read A&B code which exposes LC API + - Implement the above diff --git a/cz.py b/cz.py new file mode 100644 index 0000000..edf1a36 --- /dev/null +++ b/cz.py @@ -0,0 +1,29 @@ +from graph import Graph +from matplotlib import pyplot as plt + +class GraphState(Graph): + + def __init__(self, n): + Graph.__init__(self, n) + + def local_complementation(self, a): + for i in self.neighbours[a]: + for j in self.neighbours[a]: + if i