Write a command-line tool /app/depsort that performs a topological sort on a dependency graph and detects…
Write a command-line tool /app/depsort that performs a topological sort on a dependency graph and detects…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input contract: - Reads a single file path from the…
The task
**Input contract:** - Reads a single file path from the command-line argument. - The file contains one edge per line in the format `A -> B`, meaning "A depends on B" (B must come before A in output). - Lines are separated by LF (`\n`). The file may or may not end with a trailing newline. - Node names are…