pub fn max_key<K, V>(hash: &HashMap<K, V>) -> Option<&K>where
V: Ord,Expand description
This is a helper function the finds the maximum value in a HashMap and returns the key of that maximum value. This is basically used to find the path with the largest score in the possible paths computed from a specific starting city.