Construction. Free category on a directed graph [0056]

Let G be a directed graph; a path in G is defined to be a sequence of compatible edges {\mathopen {}\left [A_0\xrightarrow {f_0}A_1\xrightarrow {f_1}\ldots \xrightarrow {f_{n-1}}A_n\right ]\mathclose {}}. Evidently, the free category G^{\star } on G has morphisms given by paths.