When deleting a vertex or line all neighbor vertices should be recursively put into a queue. Then the queue is processed to find the new networks. Network color = old color
Clicking on a free cell creates a new vertex including new network (createVertexAction)
Clicking on a line inserts a new vertex in the current network and splits line (insertVertexAction)
Clicking and shift dragging a node (vertex) moves the vertex (moveNodeAction)
Clicking and dragging a vertex creates a new line with moving end vertex at cursor while dragging (createVertexAction, createCableAction, moveNodeAction)
The data-structure must have the following features: