added removeDisconnectedComponents to netutils