- getRowColCells();
-
- vector<int> found(nColCells, 0);
-
- for(int i=1;i<nRowCells;i++){
-
- int search;
-
- if(rowCells[i]->row == smallRow){
- search = rowCells[i]->column;
- }
- else{
- search = rowCells[i]->row;
- }
-
- for(int j=1;j<nColCells;j++){
-
- if(colCells[j]->row == search || colCells[j]->column == search){
-
- if(colCells[j]->dist < rowCells[i]->dist){
- colCells[j]->dist = rowCells[i]->dist;
-
- if(colCells[j]->vectorMap != NULL){
- *(colCells[j]->vectorMap) = NULL;
- colCells[j]->vectorMap = NULL;
- }
-
- }
-
- found[j] = 1;
- break;
- }
- }
- dMatrix->rmCell(rowCells[i]);
-