python: add easy ways to remove highlights
Fixes #554, reported by Dávid Smolka. * python/spot/impl.i (highlight_edge, highlight_state): Add versions where the color is nullptr and map that to None. (remove_highlight_states, remove_highlight_edges): New function. * tests/python/highlighting.ipynb: Demonstrate those new methods.
This commit is contained in:
parent
0dd623b358
commit
193fdd6f95
3 changed files with 315 additions and 41 deletions
5
NEWS
5
NEWS
|
|
@ -126,6 +126,11 @@ New in spot 2.11.6.dev (not yet released)
|
|||
drop_false_edges=False argument to disable the historical behavior
|
||||
of ignoring edges labeled by False.
|
||||
|
||||
- Calling aut.highlight_state(s, None) or aut.highlight_edge(e,
|
||||
None) may now be used to remove the highlighting color of some
|
||||
given state or edge. Use aut.remove_highlight_states() or
|
||||
aut.remove_highlight_edges() to remove all colors. (Issue #554.)
|
||||
|
||||
Bugs fixed:
|
||||
|
||||
- tgba_determinize()'s use_simulation option would cause it to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue