55 unsigned num_labelled_cells = this->mpCellPopulation->GetCellPropertyRegistry()->template Get<CellLabel>()->GetCellCount();
58 if (num_labelled_cells > 1)
62 cell_iter != this->mpCellPopulation->End();
66 if (cell_iter->template HasCellProperty<CellLabel>())
69 unsigned elem_index = this->mpCellPopulation->GetLocationIndexUsingCell(*cell_iter);
75 unsigned num_labelled_neighbours = 0;
76 for (std::set<unsigned>::iterator elem_iter = neighbouring_elem_indices.begin();
77 elem_iter != neighbouring_elem_indices.end();
80 if (this->mpCellPopulation->GetCellUsingLocationIndex(*elem_iter)->template HasCellProperty<CellLabel>())
82 num_labelled_neighbours++;
87 if (num_labelled_neighbours == 0)
90 this->mpCellPopulation->KillCell(*cell_iter,
"IsolatedLabelledCellKiller");