public IEnumerable <T> GetCommonElements(Hierarchy <T> other) { throw new NotImplementedException(); }
public IEnumerable <T> GetCommonElements(Hierarchy <T> other) { return(this.nodes.Keys.Intersect(other.nodes.Keys)); }
public IEnumerable <T> GetCommonElements(Hierarchy <T> other) { var result = other.elementsParents.Keys.Intersect(this.elementsParents.Keys).Reverse(); return(result); }