tgbadigraph: delegate useful graph methods
* src/tgba/tgbagraph.hh (new_state, new_states, new_transitions, out, trans_data): Delegate these useful graph methods so we do not have to call get_graph(). * src/graphtest/tgbagraph.cc, src/tgbaalgos/dtbasat.cc, src/tgbaalgos/dtgbasat.cc, src/tgbaalgos/dupexp.cc, src/tgbaalgos/emptiness.cc, src/tgbaalgos/lbtt.cc, src/tgbaalgos/powerset.cc, src/tgbaalgos/randomgraph.cc, src/tgbaalgos/sccfilter.cc, src/tgbaalgos/sccinfo.cc,src/tgbaalgos/simulation.cc: Simplify.
This commit is contained in:
parent
18f6fe772b
commit
1a93166d15
12 changed files with 92 additions and 75 deletions
|
|
@ -76,7 +76,7 @@ namespace spot
|
|||
if (drand() < a)
|
||||
ac |= *i;
|
||||
|
||||
aut->get_graph().new_transition(src, dest, p, ac);
|
||||
aut->new_transition(src, dest, p, ac);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -117,7 +117,7 @@ namespace spot
|
|||
node_set nodes_to_process;
|
||||
node_set unreachable_nodes;
|
||||
|
||||
res->get_graph().new_states(n);
|
||||
res->new_states(n);
|
||||
|
||||
std::vector<unsigned> state_randomizer(n);
|
||||
state_randomizer[0] = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue