Browse Source

edge to string method (simplifies some other code fragments), and write color to the string

tempestpy_adaptions
Sebastian Junges 6 years ago
parent
commit
82f5b05e90
  1. 9
      src/storm/storage/jani/Edge.cpp
  2. 1
      src/storm/storage/jani/Edge.h

9
src/storm/storage/jani/Edge.cpp

@ -151,6 +151,12 @@ namespace storm {
destinations = newdestinations;
}
std::string Edge::toString() const {
std::stringstream ss;
ss << *this;
return ss.str();
}
std::shared_ptr<TemplateEdge> const& Edge::getTemplateEdge() {
return templateEdge;
}
@ -181,6 +187,9 @@ namespace storm {
}
stream << "]";
}
if (edge.getColor() != 0) {
stream << " color: " << edge.getColor();
}
return stream;
}
}

1
src/storm/storage/jani/Edge.h

@ -142,6 +142,7 @@ namespace storm {
*/
int64_t const& getHighestAssignmentLevel() const;
std::string toString() const;
void assertValid() const;

Loading…
Cancel
Save