public void Run(ContextPool context) { var start = context.GetSubstitution(SemanticOrigin.StartNode); var layer = context.GetPathLayer(start, Path.Edges); context.RemoveWhere((node) => !layer.Contains(node)); }
/// <inheritdoc/> protected override void execute(ContextPool pool) { var layer = pool.GetPathLayer(_targetNode, _edges); pool.RemoveWhere((n) => !layer.Contains(n)); }