HF RL Explorer

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 Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Reads a single file path from the command-line argument. - The file contains one edge per…

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…

Part of ai-and/termgrade-environments.