Dballs algorithm: node removal through local balls