Dynamo.Graph.Workspaces.WorkspaceModel.ComputeUpstreamCacheForEntireGraph C# (CSharp) Method

ComputeUpstreamCacheForEntireGraph() private method

This method ensures that all upstream node caches are correct by calling ComputeUpstreamOnDownstream on all source nodes in the graph, this is done in such a way that each node is only computed once.
private ComputeUpstreamCacheForEntireGraph ( ) : void
return void
        private void ComputeUpstreamCacheForEntireGraph()
        {
            var sortedNodes = AstBuilder.TopologicalSort(this.nodes);

            foreach (var sortedNode in sortedNodes)
            {
                //call ComputeUpstreamCache to propogate the upstream Cache down to all nodes
                sortedNode.ComputeUpstreamCache();
            }
        }
WorkspaceModel