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-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format : The input file path is passed as the first…
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…