public IEnumerator Execute() { var store = GraphDictionary.Reserve(); yield return(Execute(store)); GraphDictionary.Release(store); }
public IEnumerator Execute(IVariableDictionary variables) { if (Graph) { var store = GraphDictionary.Reserve(); store.WriteInputs(this, Inputs, variables); store.WriteOutputs(Outputs); yield return(Graph.Execute(store)); store.ReadOutputs(this, Outputs, variables); GraphDictionary.Release(store); } }