add migration incident to delete an element inside an array, improve the code of the Graph/Tree-class