HF RL Explorer

Write a command-line tool /app/toposort (Python script, executable) that reads a dependency graph from a…

Write a command-line tool /app/toposort (Python script, executable) that reads a dependency graph from a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One dependency per line: A:B means "A depends on B" (B must come before A). - A node may…

The task

**Input file format:** - One dependency per line: `A:B` means "A depends on B" (B must come before A). - A node may appear on the left of `:` multiple times (multiple dependencies). - Lines are terminated by LF (`\n`). - Empty lines and lines starting with `#` (comments) must be ignored. - A line containing only…

Part of ai-and/termgrade-environments.