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:
parent
4170080c35
commit
c93b41a2c7
2 changed files with 26 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue