Skip to content

Commit

Permalink
removed problematic update part
Browse files Browse the repository at this point in the history
  • Loading branch information
Simaris committed Jan 7, 2021
1 parent 6a7a278 commit d5da755
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions quit/graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d5da755

Please sign in to comment.