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

            return(result);
        }