Write a command-line tool that reads a directed dependency graph from a file and produces a valid…
Write a command-line tool that reads a directed dependency graph from a file and produces a valid…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One edge per line: "A - B" meaning "A must come before B" (A depends on B, or equivalently B…
The task
Input file format: - One edge per line: "A -> B" meaning "A must come before B" (A depends on B, or equivalently B depends on A depending on interpretation—the edge direction is as written: the left node precedes the right node in the ordering). - Node names are arbitrary non-empty strings that may contain any…
Part of ai-and/termgrade-environments.