Browse Source

SCC decomposition now correctly ignores zero-entries in the matrix.

Former-commit-id: 351c0ac6ad
tempestpy_adaptions
dehnert 10 years ago
parent
commit
2c231a794d
  1. 2
      src/storage/StronglyConnectedComponentDecomposition.cpp

2
src/storage/StronglyConnectedComponentDecomposition.cpp

@ -161,7 +161,7 @@ namespace storm {
bool recursionStepIn = false; bool recursionStepIn = false;
for (; successorIt != model.getRows(currentState).end(); ++successorIt) { for (; successorIt != model.getRows(currentState).end(); ++successorIt) {
if (subsystem.get(successorIt->getColumn())) {
if (subsystem.get(successorIt->getColumn()) && successorIt->getValue() != storm::utility::constantZero<ValueType>()) {
if (currentState == successorIt->getColumn()) { if (currentState == successorIt->getColumn()) {
statesWithSelfLoop.set(currentState); statesWithSelfLoop.set(currentState);
} }

Loading…
Cancel
Save