X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=hcluster.cpp;h=2d980d73723dba0b712fc0025d975520061e9180;hb=f5023c911c377e5320c5110c78af98dd8841ef58;hp=4e83777751fa50686903758f41dd61fcdd53c52f;hpb=3c856e629e20261496b0433c2587f27b2c8ba3f6;p=mothur.git diff --git a/hcluster.cpp b/hcluster.cpp index 4e83777..2d980d7 100644 --- a/hcluster.cpp +++ b/hcluster.cpp @@ -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;