misc: add spot::is_colored()

This function checks whether an automaton is colored, an automaton
is said to be colored iff all the transitions belong to exactly one
acceptance set.

* spot/twaalgos/iscolored.cc, spot/twaalgos/iscolored.hh: Here.
* spot/twaalgos/Makefile.am: add spot/twaalgos/iscolored.{cc,hh}
* python/spot/impl.i: add spot/twaalgos/iscolored.hh
This commit is contained in:
Laurent XU 2017-03-22 18:01:37 +01:00
parent 5e5a69488e
commit b7ef7c55d7
4 changed files with 69 additions and 0 deletions

View file

@ -49,6 +49,7 @@ twaalgos_HEADERS = \
emptiness_stats.hh \
gv04.hh \
hoa.hh \
iscolored.hh \
isdet.hh \
isunamb.hh \
isweakscc.hh \
@ -110,6 +111,7 @@ libtwaalgos_la_SOURCES = \
emptiness.cc \
gv04.cc \
hoa.cc \
iscolored.cc \
isdet.cc \
isunamb.cc \
isweakscc.cc \