Update path in the tree graph when user add or changes them