Added deletion of nodes and .dot file generation