|
@ -424,12 +424,8 @@ private: |
|
|
stateIndexToProbabilityMap[targetIndex] = it.second; |
|
|
stateIndexToProbabilityMap[targetIndex] = it.second; |
|
|
} else { |
|
|
} else { |
|
|
stateIndexToProbabilityMap[targetIndex] += it.second; |
|
|
stateIndexToProbabilityMap[targetIndex] += it.second; |
|
|
deleteQueue.push(it.first); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
while (!deleteQueue.empty()) { |
|
|
|
|
|
delete deleteQueue.front(); |
|
|
|
|
|
deleteQueue.pop(); |
|
|
|
|
|
|
|
|
delete it.first; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
for (auto targetIndex : stateIndexToProbabilityMap) { |
|
|
for (auto targetIndex : stateIndexToProbabilityMap) { |
|
|