improve graph building, save graph after building it and split of drawgraph

This commit is contained in:
Laura Klünder 2016-12-05 12:09:43 +01:00
parent 6df2b7e3b7
commit a7ad682cbe
6 changed files with 116 additions and 28 deletions

View file

@ -1,6 +1,8 @@
class GraphConnection():
def __init__(self, graph, from_point, to_point):
self.graph = graph
self.from_point = from_point
self.to_point = to_point
if to_point in from_point.connections:
self.graph.connections.remove(from_point.connections[to_point])