dot: add a <N option
* spot/twaalgos/dot.cc: Implement it. * spot/taalgos/dot.cc: Ignore it. * spot/twaalgos/copy.cc, spot/twaalgos/copy.hh: Add option to limit the number of states. * tests/python/ltsmin.ipynb: Improve test case. * tests/Makefile.am: Cleanup the files generated by ltsmin.ipynb. * python/spot/__init__.py (setup): Add a max_states argument that default to 50. * bin/common_aoutput.cc: Mention the <INT option. * NEWS: Likewise.
This commit is contained in:
parent
4571d6dd3a
commit
b11c07b351
9 changed files with 1145 additions and 364 deletions
|
|
@ -71,6 +71,8 @@ def setup(**kwargs):
|
|||
the font to use in the GraphViz output (default: 'Lato')
|
||||
show_default : str
|
||||
default options for show()
|
||||
max_states : int
|
||||
maximum number of states in GraphViz output (default: 50)
|
||||
"""
|
||||
import os
|
||||
|
||||
|
|
@ -80,7 +82,8 @@ def setup(**kwargs):
|
|||
kwargs.get('fillcolor', '#ffffaa'))
|
||||
|
||||
bullets = 'B' if kwargs.get('bullets', True) else ''
|
||||
d = 'rf({})'.format(kwargs.get('font', 'Lato')) + bullets
|
||||
max_states = '<' + str(kwargs.get('max_states', 50))
|
||||
d = 'rf({})'.format(kwargs.get('font', 'Lato')) + bullets + max_states
|
||||
global _show_default
|
||||
_show_default = kwargs.get('show_default', None)
|
||||
os.environ['SPOT_DOTDEFAULT'] = d
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue