Add script to prune edges whose nodes do not exist