Write a command-line tool that reads a dependency graph from a file and outputs a topological ordering. If…
Write a command-line tool that reads a dependency graph from a file and outputs a topological ordering. If…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Each line is either empty, a comment (first non-whitespace character is ), or a…
The task
**Input file format:** - Each line is either empty, a comment (first non-whitespace character is `#`), or a dependency specification. - A dependency specification has the form: `NODE: DEP1 DEP2 ... DEPN` where the node name and each dependency are separated by whitespace. The colon after the node name is mandatory…
Part of ai-and/termgrade-environments.