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

Loading…
Cancel
Save