made copy within 'delete' method
Merge pull request #13 from corinnelhh/newgraph

made copy within 'delete' method