improve graph building, save graph after building it and split of drawgraph
This commit is contained in:
parent
6df2b7e3b7
commit
a7ad682cbe
6 changed files with 116 additions and 28 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue