Directional graphs are an ordered pair:
Labeled oriented graphs additionally contain annotations (marking functions) on nodes and edges. These are syntax constructs, i.e. The semantics associated with these annotations are not part of the labels themselves, but rather the interpretation that we will attribute to them, depending on the context. (see also multidigraph ).
The definition of a converter is discussed in this answer . This is a tuple that includes nodes, edges, input alphabet, output alphabet, set of initial states and marking functions: edges with input letters and states (Moore) or edges (Mealy) with output letters.
Thus, a directed graph is a data structure that does not correspond to the representation of the finite machine. On the contrary, a labeled directed graph is a data structure that can represent a finite state machine (although algebraically they are different structures, although it is more technical).
Note that a “set of initial states” can be equivalently described by a function that designates states as initial or not, so a digraph equipped with enough marking functions is enough to describe a final state machine.
source share