From dce83a649b2810a63af9aafab95499aa6c3f8ba5 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Fri, 11 Nov 2016 15:38:25 +0100 Subject: [PATCH] improve doc for purge_unreachable_states and purge_dead_states * spot/twa/twagraph.hh: Here. --- spot/twa/twagraph.hh | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/spot/twa/twagraph.hh b/spot/twa/twagraph.hh index 1cf048f14..e6736a5ef 100644 --- a/spot/twa/twagraph.hh +++ b/spot/twa/twagraph.hh @@ -439,13 +439,30 @@ namespace spot /// extremities and acceptance. void merge_edges(); - /// Remove all states without successors. + /// \brief Remove all dead states + /// + /// Dead states are all the states that cannot be part of + /// an infinite run of the automaton. This includes + /// states without successors, unreachable states, and states + /// that only have dead successors. + /// + /// \see purge_unreachable_states void purge_dead_states(); - /// Remove all unreachable states. + /// \brief Remove all unreachable states. + /// + /// A state is unreachable if it cannot be reached from the initial state. + /// + /// Use this function if you have declared more states than you + /// actually need in the automaton. + /// + /// purge_dead_states() will remove more states than + /// purge_unreachable_states(). + /// + /// \see purge_dead_states void purge_unreachable_states(); - /// \brief Remove unused atomic proposition + /// \brief Remove unused atomic propositions /// /// Remove, from the list of atomic propositions registered by the /// automaton, those that are not actually used by its labels.