fn transitive_closure<K: Hash + Eq + PartialEq + Clone>( inp: &HashMap<K, HashSet<K>>, ) -> HashMap<K, HashSet<K>>
Given a hashmap representing a binary relationship, compute its transitive closure.