Added utility to remove low-degree nodes.