Implemented cutting on diagrams