+
+
+""")
+
+ # 渲染 Keys
+ for key in sorted(keys):
+ k_id = get_id(key)
+ stats = node_stats[k_id]
+ html_parts.append(f'
{key}
')
+
+ html_parts.append("""
+
+
+
+
+
+""")
+
+ # 收集所有唯一的 Modes
+ all_modes = sorted(set(mode for _, mode, _ in edges))
+ for mode in all_modes:
+ m_id = get_id(mode)
+ stats = node_stats[m_id]
+ html_parts.append(f'
{mode}
')
+
+ html_parts.append("""
+
+
+
+
+
+""")
+
+ # 收集所有唯一的 Funcs
+ all_funcs = sorted(set(func for _, _, func in edges))
+ for func in all_funcs:
+ f_id = get_id(func)
+ stats = node_stats[f_id]
+ html_parts.append(f'
{func}()
')
+
+ html_parts.append("""
+
+
+