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
        /// <inheritdoc/>
        protected override void execute(ContextPool pool)
        {
            var layer = pool.GetPathLayer(_targetNode, _edges);

            pool.RemoveWhere((n) => !layer.Contains(n));
        }