From fcb5f094dcd0eac73d932dd616383f4dd239272d Mon Sep 17 00:00:00 2001 From: TimQu Date: Fri, 17 May 2019 08:52:50 +0200 Subject: [PATCH] Fixed a tybo. --- src/storm/solver/TopologicalLinearEquationSolver.cpp | 2 +- src/storm/solver/TopologicalMinMaxLinearEquationSolver.cpp | 2 +- src/storm/storage/StronglyConnectedComponentDecomposition.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/storm/solver/TopologicalLinearEquationSolver.cpp b/src/storm/solver/TopologicalLinearEquationSolver.cpp index 649843521..4a797fc53 100644 --- a/src/storm/solver/TopologicalLinearEquationSolver.cpp +++ b/src/storm/solver/TopologicalLinearEquationSolver.cpp @@ -105,7 +105,7 @@ namespace storm { template void TopologicalLinearEquationSolver::createSortedSccDecomposition(bool needLongestChainSize) const { // Obtain the scc decomposition - this->sortedSccDecomposition = std::make_unique>(*this->A, storm::storage::StronglyConnectedComponentDecompositionOptions().forceTobologicalSort().computeSccDepths(needLongestChainSize)); + this->sortedSccDecomposition = std::make_unique>(*this->A, storm::storage::StronglyConnectedComponentDecompositionOptions().forceTopologicalSort().computeSccDepths(needLongestChainSize)); if (needLongestChainSize) { this->longestSccChainSize = this->sortedSccDecomposition->getMaxSccDepth() + 1; } diff --git a/src/storm/solver/TopologicalMinMaxLinearEquationSolver.cpp b/src/storm/solver/TopologicalMinMaxLinearEquationSolver.cpp index 7afb90bb6..998c9d782 100644 --- a/src/storm/solver/TopologicalMinMaxLinearEquationSolver.cpp +++ b/src/storm/solver/TopologicalMinMaxLinearEquationSolver.cpp @@ -113,7 +113,7 @@ namespace storm { template void TopologicalMinMaxLinearEquationSolver::createSortedSccDecomposition(bool needLongestChainSize) const { // Obtain the scc decomposition - this->sortedSccDecomposition = std::make_unique>(*this->A, storm::storage::StronglyConnectedComponentDecompositionOptions().forceTobologicalSort().computeSccDepths(needLongestChainSize)); + this->sortedSccDecomposition = std::make_unique>(*this->A, storm::storage::StronglyConnectedComponentDecompositionOptions().forceTopologicalSort().computeSccDepths(needLongestChainSize)); if (needLongestChainSize) { this->longestSccChainSize = this->sortedSccDecomposition->getMaxSccDepth() + 1; } diff --git a/src/storm/storage/StronglyConnectedComponentDecomposition.h b/src/storm/storage/StronglyConnectedComponentDecomposition.h index da8b1dc25..246866f64 100644 --- a/src/storm/storage/StronglyConnectedComponentDecomposition.h +++ b/src/storm/storage/StronglyConnectedComponentDecomposition.h @@ -28,7 +28,7 @@ namespace storm { /// Sets if only bottom SCCs, i.e. SCCs in which all states have no way of leaving the SCC), are kept. StronglyConnectedComponentDecompositionOptions& onlyBottomSccs(bool value = true) { areOnlyBottomSccsConsidered = value; return *this; } /// Enforces that the returned SCCs are sorted in a topological order. - StronglyConnectedComponentDecompositionOptions& forceTobologicalSort(bool value = true) { isTopologicalSortForced = value; return *this; } + StronglyConnectedComponentDecompositionOptions& forceTopologicalSort(bool value = true) { isTopologicalSortForced = value; return *this; } /// Sets if scc depths can be retrieved. StronglyConnectedComponentDecompositionOptions& computeSccDepths(bool value = true) { isComputeSccDepthsSet = value; return *this; }