HF RL Explorer

Implement a command-line tool /app/toposort (Python script) that reads a dependency specification from a…

Implement a command-line tool /app/toposort (Python script) that reads a dependency specification from a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One line per node. - Each line: node name: dependency1 dependency2 ... dependencyN - node…

The task

**Input file format:** - One line per node. - Each line: `node_name: dependency1 dependency2 ... dependencyN` - `node_name` is a non-empty string without colons or whitespace. - Dependencies are separated by single spaces. - A node may have zero dependencies (line ends with colon, possibly with trailing space before…

Part of ai-and/termgrade-environments.