Remove duplicate edges in resource node.