private static IGraphDebugData FetchRootDebugData(IGraphRoot root) { if (!rootDatas.TryGetValue(root, out var rootData)) { rootData = new GraphDebugData(root.childGraph); rootDatas.Add(root, rootData); } return(rootData); }
public IGraphDebugData GetOrCreateChildGraphData(IGraphParentElement element) { if (!childrenGraphsData.TryGetValue(element, out var data)) { data = new GraphDebugData(element.childGraph); childrenGraphsData.Add(element, data); } return(data); }