HF RL Explorer

Write a Python script /app/toposort.py that accepts a dependency specification file and computes a stable…

Write a Python script /app/toposort.py that accepts a dependency specification file and computes a stable…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (text file path given as first CLI argument): - Each non-empty line is a dependency relation: A…

The task

**Input format (text file path given as first CLI argument):** - Each non-empty line is a dependency relation: `A -> B` meaning "A depends on B" (B must come before A). - Whitespace around `->` and line endings is flexible (spaces, tabs, CRLF, trailing spaces). - Lines starting with `#` are comments and must be…

Part of ai-and/termgrade-environments.