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); } }
public void AddRelation(AccessibilityRelation relation, WorldSymbol x, WorldSymbol y) { relation.AddRelation(y, x); }