Exhaustive graph traversal
Input
A directed graph [math]\displaystyle{ G=(V,A) }[/math].
Output
A sequence of all nodes of [math]\displaystyle{ G }[/math].
A directed graph [math]\displaystyle{ G=(V,A) }[/math].
A sequence of all nodes of [math]\displaystyle{ G }[/math].