HF RL Explorer

Write a command-line tool that reads a directed graph from a JSON file and outputs a topological ordering.

Write a command-line tool that reads a directed graph from a JSON file and outputs a topological ordering.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input JSON specification: - The file contains an object with: - "nodes": an array of strings (node names) -…

The task

Input JSON specification: - The file contains an object with: - "nodes": an array of strings (node names) - "edges": an array of [from, to] pairs, both strings referencing node names - Node names are arbitrary non-empty strings. They may contain spaces, unicode characters, and special characters. - The graph may…

Part of ai-and/termgrade-environments.