Your aim is to connect the nodes of the graph so all nodes have value of zero.

To connect nodes just draw a line (using mouse) from first node to the second node.

To delete link between nodes, Just draw line the cut through the link.