HF RL Explorer

Write a command-line tool toposort that reads a directed dependency graph from a file and outputs either a…

Write a command-line tool toposort that reads a directed dependency graph from a file and outputs either a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One edge per line: SOURCE - TARGET - Node names are non-empty strings of printable…

The task

**Input file format:** - One edge per line: `SOURCE -> TARGET` - Node names are non-empty strings of printable ASCII characters (0x21–0x7E), EXCLUDING the substring `->` and whitespace. - Lines may contain leading/trailing whitespace, which must be ignored. - Empty lines and lines consisting only of whitespace must…

Part of ai-and/termgrade-environments.