Beispiel #1
0
        public void Run(ContextPool context)
        {
            var start = context.GetSubstitution(SemanticOrigin.StartNode);
            var layer = context.GetPathLayer(start, Path.Edges);

            context.RemoveWhere((node) => !layer.Contains(node));
        }
Beispiel #2
0
        public void Run(ContextPool context)
        {
            var pushStart = context.GetSubstitution(SemanticOrigin.StartNode);

            foreach (var path in SemanticOrigin.Paths)
            {
                context.Push(pushStart, path);
            }
        }