CPD trees are updated whenever node is added or edge created