Browse Source

graph: Cycle check ignores Zero entries.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
3a4af89b66
  1. 2
      src/storm/utility/graph.cpp

2
src/storm/utility/graph.cpp

@ -141,6 +141,7 @@ namespace storm {
if (unexploredStates.get(state)) { if (unexploredStates.get(state)) {
unexploredStates.set(state, false); unexploredStates.set(state, false);
for (auto const& entry : transitionMatrix.getRowGroup(state)) { for (auto const& entry : transitionMatrix.getRowGroup(state)) {
if (!storm::utility::isZero(entry.getValue())) {
if (unexploredStates.get(entry.getColumn())) { if (unexploredStates.get(entry.getColumn())) {
dfsStack.push_back(entry.getColumn()); dfsStack.push_back(entry.getColumn());
} else { } else {
@ -150,6 +151,7 @@ namespace storm {
} }
} }
} }
}
} else { } else {
acyclicStates.set(state, true); acyclicStates.set(state, true);
dfsStack.pop_back(); dfsStack.pop_back();

Loading…
Cancel
Save