]> git.donarmstrong.com Git - mothur.git/blobdiff - hcluster.cpp
added groups option to read.otu, added qtrim option to trim.seqs, fixed bug in get...
[mothur.git] / hcluster.cpp
index 4e83777751fa50686903758f41dd61fcdd53c52f..2d980d73723dba0b712fc0025d975520061e9180 100644 (file)
@@ -235,19 +235,17 @@ void HCluster::updateArrayandLinkTable() {
                        }
 //cout << "here3" << endl;                     
                        linkTable[colSpot].erase(size);
-                       linkTable.erase(linkTable.begin()+rowSpot);  //delete col
+                       //linkTable.erase(linkTable.begin()+rowSpot);  //delete row
        //printInfo();          
                        //update activerows
                        activeLinks.erase(smallRow);
                        activeLinks.erase(smallCol);
-                       
-                       if(rowSpot>colSpot) {   activeLinks[size] = colSpot;    }
-                       else{   activeLinks[size] = colSpot;  }
+                       activeLinks[size] = colSpot;
                        
                        //adjust everybody elses spot since you deleted - time vs. space
-                       for (it = activeLinks.begin(); it != activeLinks.end(); it++) {
-                               if (it->second > rowSpot) {  activeLinks[it->first]--;  }
-                       }
+                       //for (it = activeLinks.begin(); it != activeLinks.end(); it++) {
+                               //if (it->second > rowSpot) {  activeLinks[it->first]--;        }
+                       //}
                        
 //cout << "here4" << endl;