Skip to content

Commit

Permalink
style(nfa): Improve formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Adda0 committed Aug 16, 2024
1 parent fbeeaba commit f9a20ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/mata/nfa/nfa.hh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "delta.hh"

/**
* Nondeterministic Finite Automata including structures, transitions and algorithms.
* @brief Nondeterministic Finite Automata including structures, transitions and algorithms.
*
* In particular, this includes:
* 1. Structures (Automaton, Transitions, Results, Delta),
Expand All @@ -56,6 +56,7 @@ public:
Delta delta;
utils::SparseSet<State> initial{};
utils::SparseSet<State> final{};

Alphabet* alphabet = nullptr; ///< The alphabet which can be shared between multiple automata.
/// Key value store for additional attributes for the NFA. Keys are attribute names as strings and the value types
/// are up to the user.
Expand Down Expand Up @@ -127,7 +128,7 @@ public:
*/
Nfa& swap_final_nonfinal() { final.complement(num_of_states()); return *this; }

bool is_state(const State &state_to_check) const { return state_to_check < num_of_states(); }
bool is_state(const State& state_to_check) const { return state_to_check < num_of_states(); }

/**
* @brief Clear the underlying NFA to a blank NFA.
Expand Down Expand Up @@ -261,6 +262,7 @@ public:
* @brief Prints the automaton to the output stream in DOT format
*/
void print_to_dot(std::ostream &output) const;

/**
* @brief Prints the automaton in mata format
*
Expand Down

0 comments on commit f9a20ca

Please sign in to comment.