HF RL Explorer

Write a command-line tool topo that reads a directed graph from a file and prints either a topological order…

Write a command-line tool topo that reads a directed graph from a file and prints either a topological order…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format (line-based): - Each non-empty line is either a comment or an edge. - Comment lines…

The task

**Input file format (line-based):** - Each non-empty line is either a comment or an edge. - Comment lines start with `#` and must be ignored. - Edge lines have format: `NODE -> NODE` - Node names are case-sensitive, non-empty strings of printable ASCII characters (no spaces, no tabs). - Whitespace around `->` is…

Part of ai-and/termgrade-environments.