Browse Source

Small refactoring

Former-commit-id: c800918d3e
tempestpy_adaptions
Mavo 9 years ago
parent
commit
d7e3d10272
  1. 4
      src/storage/dft/DFTBuilder.cpp

4
src/storage/dft/DFTBuilder.cpp

@ -119,12 +119,12 @@ namespace storm {
// TODO Matthias: use typedefs // TODO Matthias: use typedefs
template<typename ValueType> template<typename ValueType>
std::vector<std::shared_ptr<DFTElement<ValueType>>> DFTBuilder<ValueType>::topoSort() { std::vector<std::shared_ptr<DFTElement<ValueType>>> DFTBuilder<ValueType>::topoSort() {
std::map<std::shared_ptr<DFTElement<ValueType>>, topoSortColour> visited;
std::map<DFTElementPointer, topoSortColour> visited;
for(auto const& e : mElements) { for(auto const& e : mElements) {
visited.insert(std::make_pair(e.second, topoSortColour::WHITE)); visited.insert(std::make_pair(e.second, topoSortColour::WHITE));
} }
std::vector<std::shared_ptr<DFTElement<ValueType>>> L;
DFTElementVector L;
for(auto const& e : visited) { for(auto const& e : visited) {
topoVisit(e.first, visited, L); topoVisit(e.first, visited, L);
} }

Loading…
Cancel
Save