randomgraph: Use tgba_digraph.

* src/graph/graph.hh (new_states): Call reserve().
* src/tgbaalgos/randomgraph.cc: Use tgba_digraph
instead of tgba_string_explicit.
This commit is contained in:
Alexandre Duret-Lutz 2014-06-26 23:13:19 +02:00
parent 4170080c35
commit c93b41a2c7
2 changed files with 26 additions and 41 deletions

View file

@ -446,6 +446,7 @@ namespace spot
state new_states(unsigned n, Args&&... args)
{
state s = states_.size();
states_.reserve(s + n);
while (n--)
states_.emplace_back(std::forward<Args>(args)...);
return s;