dot: name the digraph
* spot/twaalgos/dot.cc: Here. * NEWS: Mention the change. * tests/core/alternating.test, tests/core/det.test, tests/core/dstar.test, tests/core/monitor.test, tests/core/neverclaimread.test, tests/core/readsave.test, tests/core/sccdot.test, tests/core/tgbagraph.test, tests/python/_altscc.ipynb, tests/python/_autparserr.ipynb, tests/python/alternation.ipynb, tests/python/atva16-fig2a.ipynb, tests/python/atva16-fig2b.ipynb, tests/python/automata-io.ipynb, tests/python/automata.ipynb, tests/python/decompose.ipynb, tests/python/gen.ipynb, tests/python/highlighting.ipynb, tests/python/ltsmin-dve.ipynb, tests/python/ltsmin-pml.ipynb, tests/python/parity.ipynb, tests/python/product.ipynb, tests/python/randaut.ipynb, tests/python/satmin.ipynb, tests/python/stutter-inv.ipynb, tests/python/testingaut.ipynb, tests/python/word.ipynb: Adjust test cases.
This commit is contained in:
parent
2775b0abc8
commit
6cec43294d
29 changed files with 12223 additions and 10271 deletions
|
|
@ -78,7 +78,8 @@ namespace spot
|
|||
std::vector<std::pair<unsigned, unsigned>>* sprod_ = nullptr;
|
||||
std::vector<unsigned>* orig_ = nullptr;
|
||||
std::set<unsigned>* incomplete_ = nullptr;
|
||||
std::string* name_ = nullptr;
|
||||
std::string* name_ = nullptr; // title for the graph
|
||||
std::string* graph_name_ = nullptr; // name for the digraph
|
||||
std::map<std::pair<int, int>, int> univ_done;
|
||||
|
||||
acc_cond::mark_t inf_sets_ = {};
|
||||
|
|
@ -473,7 +474,10 @@ namespace spot
|
|||
// UTF-8 has no glyphs for circled numbers larger than MAX_BULLET.
|
||||
if (opt_bullet && (aut_->num_sets() <= MAX_BULLET || opt_latex_))
|
||||
opt_all_bullets = true;
|
||||
os_ << "digraph G {\n";
|
||||
os_ << "digraph \"";
|
||||
if (graph_name_)
|
||||
escape_str(os_, *graph_name_);
|
||||
os_ << "\" {\n";
|
||||
if (opt_latex_)
|
||||
{
|
||||
os_ << " d2tgraphstyle=\"every node/.style={align=center}\"\n";
|
||||
|
|
@ -783,8 +787,9 @@ namespace spot
|
|||
aut->get_named_prop<std::map<unsigned, unsigned>>("highlight-states");
|
||||
incomplete_ =
|
||||
aut->get_named_prop<std::set<unsigned>>("incomplete-states");
|
||||
graph_name_ = aut_->get_named_prop<std::string>("automaton-name");
|
||||
if (opt_name_)
|
||||
name_ = aut_->get_named_prop<std::string>("automaton-name");
|
||||
name_ = graph_name_;
|
||||
mark_states_ = (!opt_force_acc_trans_
|
||||
&& aut_->prop_state_acc().is_true());
|
||||
dcircles_ = (mark_states_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue