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(); } }