针对《战争与和平》等角色众多的书籍,推荐以下防重叠策略:
1. Pre-processing phase
- exist
analysis.service.ts
AddMAX_NODES=30
limitation - 启用AI的
group minor characters"
指令自动合并次要角色
2. 图表引擎调优
- 改用mermaid的
flowchart-elk
布局算法(需v9.3+) - increase
%%{init: {"elk": {"algorithm": "layered"}}}%%
configure
3. 交互式改进
- modifications
graph-viewer.component.html
添加缩放平移控件 - 通过CSS的
max-width: 100vw
防止图表溢出视口
应急方案:导出后使用Graphviz的neato
引擎重新布局。
This answer comes from the articleAusten: an AI tool that analyzes book character relationships and generates graphsThe