File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ static constexpr uint64_t MAX_ALLOWED_TMP_EDGES_IN_FILE{64000000};//{130000000};
1010
1111
1212struct Cost {
13- // sum of number of steps from all leaves' paths
13+ // sum of number of steps from all leaves' paths for all queries
1414 uint64_t numSteps{1 };
1515 // sum of number of queries for all nodes along all paths leading to this node
1616 uint64_t numQueries{1 };
@@ -123,8 +123,10 @@ class MSTPlanner {
123123 for (auto &e: uniqueEdges[mstIdx]) {
124124 if (e.first != mstZero[mstIdx]) {
125125 mstCost[mstIdx][e.first ].numQueries ++;
126+ mstCost[mstIdx][e.first ].numSteps ++;
126127 } else if (e.second != mstZero[mstIdx]) {
127128 mstCost[mstIdx][e.second ].numQueries ++;
129+ mstCost[mstIdx][e.first ].numSteps ++;
128130 }
129131 }
130132 uniqueEdges[mstIdx].clear ();
You can’t perform that action at this time.
0 commit comments