fn invert<K: Hash + Eq + PartialEq + Clone>( inp: &HashMap<K, HashSet<K>>, ) -> HashMap<K, HashSet<K>>
Given a hashmap representing a binary relationship, invert it.