void ShowFlatDependencies(VertexData vertex) { bool first = true; var flatDeps = GetAllDependencies(vertex); Console.WriteLine(); foreach (var d in flatDeps) { var dSize = SpaceAnalyzer == null ? 0 : SpaceAnalyzer.GetSize(d.Item1); if (first) { var sizeStr = dSize > 0 ? $" [size: {dSize}]" : ""; Console.WriteLine($"Distance | {d.Item1.value} [total deps: {flatDeps.Count}]{sizeStr}"); Line(); first = false; continue; } var sizeStr2 = dSize > 0 ? $" [size: {dSize}]" : ""; Console.WriteLine($"{string.Format ("{0,8}", d.Item2)} | {d.Item1.value}{d.Item1.DepsCount}{sizeStr2}"); } }
string SizeString(VertexData vertex) { return(SpaceAnalyzer == null ? "" : string.Format(" size: {0}", SpaceAnalyzer.GetSize(vertex))); }
string SizeString(VertexData vertex) { return(SpaceAnalyzer == null ? "" : string.Format(" size: {0} size with deps: {1}", SpaceAnalyzer.GetSize(vertex), SpaceAnalyzer.GetDepSize(vertex, this))); }