Write a Python 3 script that reads a directed graph from a JSON file and outputs a valid topological…
Write a Python 3 script that reads a directed graph from a JSON file and outputs a valid topological…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input JSON format: A file containing a single JSON object with a "nodes" array and an "edges" array. - "nodes" …
The task
**Input JSON format:** A file containing a single JSON object with a `"nodes"` array and an `"edges"` array. - `"nodes"`: array of strings (node names). Node names are non-empty and may contain any Unicode characters except null. They are guaranteed unique within the file. - `"edges"`: array of objects, each with…
Part of ai-and/termgrade-environments.