From d5da7559646b00cb3d4c7bbda03b70d9afa69104 Mon Sep 17 00:00:00 2001 From: Simaris Date: Thu, 7 Jan 2021 19:44:21 +0100 Subject: [PATCH] removed problematic update part --- quit/graphs.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/quit/graphs.py b/quit/graphs.py index 8f09127d..558fca9f 100644 --- a/quit/graphs.py +++ b/quit/graphs.py @@ -118,18 +118,18 @@ def __repr__(self): len((c for c in self.graphs() if c not in self.store.contexts())) ) - def update(self, update_object): - comp_graphA = ComparableGraph(self.store) - comp_graphB = ComparableGraph(self.store) - answer = comp_graphB.update(update_object) - diff_tupel = comp_graphA.diff(comp_graphB) - for removeGraph in diff_tupel[1]: - for triple in removeGraph: - self.remove(triple) - for additionalGraph in diff_tupel[0]: - for triple in additionalGraph: - self.add(additionalGraph) - return answer + #def update(self, update_object): + # comp_graphA = ComparableGraph(self.store) + # comp_graphB = ComparableGraph(self.store) + # answer = comp_graphB.update(update_object) + # diff_tupel = comp_graphA.diff(comp_graphB) + # for removeGraph in diff_tupel[0]: + # for triple in removeGraph: + # self.remove(triple) + # for additionalGraph in diff_tupel[1]: + # for triple in additionalGraph: + # self.add(additionalGraph) + # return answer def _graph(self, c): if c is None: