예제 #1
0
        private static IGraphDebugData FetchRootDebugData(IGraphRoot root)
        {
            if (!rootDatas.TryGetValue(root, out var rootData))
            {
                rootData = new GraphDebugData(root.childGraph);
                rootDatas.Add(root, rootData);
            }

            return(rootData);
        }
예제 #2
0
        public IGraphDebugData GetOrCreateChildGraphData(IGraphParentElement element)
        {
            if (!childrenGraphsData.TryGetValue(element, out var data))
            {
                data = new GraphDebugData(element.childGraph);
                childrenGraphsData.Add(element, data);
            }

            return(data);
        }