Given a directory of .node files, each representing a node in a directed graph, perform a stable topological…
Given a directory of .node files, each representing a node in a directed graph, perform a stable topological…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - A directory path is passed as the first command-line argument. - Inside that directory…
The task
**Input format:** - A directory path is passed as the first command-line argument. - Inside that directory, each `.node` file has a name like `<name>.node` where `<name>` is a non-empty string of ASCII alphanumeric characters and underscores (matching `[a-zA-Z0-9_]+`). Node names are case-sensitive. - Each `.node`…
Part of ai-and/termgrade-environments.