Browse Source

Small bugfix for the dot output

tempestpy_adaptions
Lanchid 12 years ago
parent
commit
b726a07b3f
  1. 2
      src/models/Dtmc.h
  2. 2
      src/utility/utility.cpp

2
src/models/Dtmc.h

@ -110,7 +110,7 @@ public:
*
*/
std::set<std::string> getPropositionsForState(uint_fast32_t state) {
return stateLabeling->getPropositionsForState(state - 1);
return stateLabeling->getPropositionsForState(state);
}
/*!

2
src/utility/utility.cpp

@ -25,7 +25,7 @@ void dtmcToDot(mrmc::models::Dtmc<double>* dtmc, std::string filename) {
file << "digraph dtmc {\n";
//Specify the nodes and their labels
for (uint_fast64_t i = 1; i <= dtmc->getNumberOfStates(); i++) {
for (uint_fast64_t i = 1; i < dtmc->getNumberOfStates(); i++) {
file << "\t" << i << "[label=\"" << i << "\\n{";
char komma=' ';
std::set<std::string> propositions = dtmc->getPropositionsForState(i);

Loading…
Cancel
Save