HF RL Explorer

Build a command-line tool at /app/bin/topsort that reads a directed dependency graph from a file and prints…

Build a command-line tool at /app/bin/topsort that reads a directed dependency graph from a file and prints…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One edge per line: SOURCE<TAB TARGET - Lines may have trailing whitespace; trim it…

The task

**Input file format:** - One edge per line: `SOURCE<TAB>TARGET` - Lines may have trailing whitespace; trim it before parsing. - Blank lines (empty or whitespace-only) are ignored. - Lines starting with `#` are comments and must be ignored. - Node names are arbitrary non-empty UTF-8 strings (no tabs, no newlines). -…

Part of ai-and/termgrade-environments.