Implement a command-line tool that reads a directed graph from stdin and outputs a topological ordering of…
Implement a command-line tool that reads a directed graph from stdin and outputs a topological ordering of…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): Each line contains two strings separated by a single space, representing a directed…
The task
Input format (stdin): Each line contains two strings separated by a single space, representing a directed edge from the first string to the second. Lines may be empty. Input may contain trailing newlines or no trailing newline. The strings can contain any printable ASCII characters except space (0x20). A line with…
Part of ai-and/termgrade-environments.