Ejemplo n.º 1
0
        public void AddRelation(AccessibilityRelation relation, WorldSymbol x, WorldSymbol y)
        {
            if (x == y)
            {
                return;
            }

            var relations = relation.Relations.Where(rel => rel.Key == y);

            foreach (var rel in relations)
            {
                foreach (var target in rel.Value)
                {
                    relation.AddRelation(x, target);
                }
            }

            relations = relation.Relations.Where(rel => rel.Value.Contains(x));
            foreach (var rel in relations)
            {
                relation.AddRelation(rel.Key, y);
            }
        }
Ejemplo n.º 2
0
 public void AddRelation(AccessibilityRelation relation, WorldSymbol x, WorldSymbol y)
 {
     relation.AddRelation(y, x);
 }