17 #ifndef AWALI_ALGOS_IS_ACYCLIC_HH
18 # define AWALI_ALGOS_IS_ACYCLIC_HH
20 # include <unordered_map>
31 template <
typename Aut>
36 std::unordered_map<state_t, char>
tag;
52 auto it =
tag.find(s);
56 for (
auto t :
aut_->out(s))
88 for (
auto s :
aut_->states())
96 template <
typename Aut>
typename internal::label_t_of_impl< internal::base_t< ValueSet > >::type label_t_of
Helper to retrieve the type of the labels of a value set.
Definition: traits.hh:71
ATTRIBUTE_CONST bool is_acyclic(const Aut &aut)
Definition: is_acyclic.hh:98
Main namespace of Awali.
Definition: ato.hh:22
unsigned state_t
Definition: types.hh:21
Definition: is_acyclic.hh:33
bool is_acyclic()
Definition: is_acyclic.hh:86
std::unordered_map< state_t, char > tag
Definition: is_acyclic.hh:36
bool has_circuit(state_t s)
Definition: is_acyclic.hh:50
label_t_of< automaton_t > label_t
Definition: is_acyclic.hh:35
typename std::remove_cv< Aut >::type automaton_t
Definition: is_acyclic.hh:34
const automaton_t & aut_
Definition: is_acyclic.hh:47
test_acyclic(const automaton_t &aut)
Definition: is_acyclic.hh:82