pub fn topological_sort( graph: &HashMap<String, Vec<String>>, ) -> Result<Vec<String>, Error>
Topological sort using Kahn’s algorithm.