public void Run(ContextPool context) { var start = context.GetSubstitution(SemanticOrigin.StartNode); var layer = context.GetPathLayer(start, Path.Edges); context.RemoveWhere((node) => !layer.Contains(node)); }
public void Run(ContextPool context) { var pushStart = context.GetSubstitution(SemanticOrigin.StartNode); foreach (var path in SemanticOrigin.Paths) { context.Push(pushStart, path); } }