public IEnumerable <T> GetCommonElements(Hierarchy <T> other) { return(dict.Keys.Where(k => other.Contains(k))); }