Write a Python script /app/toposort.py that reads a dependency graph from a file and performs a topological…
Write a Python script /app/toposort.py that reads a dependency graph from a file and performs a topological…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format : The input file path is passed as the first command-line argument. Each line is either: -…
The task
**Input format**: The input file path is passed as the first command-line argument. Each line is either: - Empty (skip it) - A comment line starting with `#` (skip it) - A dependency declaration: `TASK_NAME: DEP1,DEP2,...` where `TASK_NAME` is a non-empty string and the comma-separated list of dependencies may be…
Part of ai-and/termgrade-environments.