Returns a human readable string representation of the given FA. The FA has to have exactly one initial state.
All states will be labeled with numbers. The initial state will always has the number 0. Each state will be
mapped to its outgoing states. The outgoing states may contain duplicates and are sorted alphabetically by their
transition string. The number of states will be surrounded by brackets - square brackets for final states and round
brackets for non-final states.
A conversion function for the transitions may optionally be given. If no transition function is given, the native
String function will be used.
Returns a human readable string representation of the given FA. The FA has to have exactly one initial state.
All states will be labeled with numbers. The initial state will always has the number 0. Each state will be mapped to its outgoing states. The outgoing states may contain duplicates and are sorted alphabetically by their transition string. The number of states will be surrounded by brackets - square brackets for final states and round brackets for non-final states.
A conversion function for the transitions may optionally be given. If no transition function is given, the native
String
function will be used.Example output for an NFA of
a*d|bb*