adding and removing edges in the graph
cut edges in UI