Improve graph pruning algorithm
Bump version for release