Write a command-line tool topo that reads a dependency specification from stdin and outputs either a valid…
Write a command-line tool topo that reads a dependency specification from stdin and outputs either a valid…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): One line per node. Each line has the form: NODE:DEP1,DEP2,... - NODE is a non-empty…
The task
**Input format (stdin):** One line per node. Each line has the form: `NODE:DEP1,DEP2,...` - `NODE` is a non-empty string of printable ASCII characters (no colons, no commas). - The colon is literal. - After the colon: zero or more comma-separated dependency names. - A dependency name is a non-empty string of…
Part of ai-and/termgrade-environments.