Update complex region define and graph pruning