Expand description
Graph TUI Visualization Module
Terminal-based graph visualization with Toyota Way principles.
§Design Principles (per spec docs/batuta-graph-viz-tui-spec.md)
- Genchi Genbutsu: Graph data at source, no duplication
- Jidoka: Built-in quality via layout convergence tests
- Heijunka: Single layout engine, multiple output backends
- Mieruka: Semantic colors for instant status recognition
- Respect for People: Accessibility via shapes (not just color)
§Academic References
- Fruchterman & Reingold (1991) - Force-directed layout
- Kamada & Kawai (1989) - Spring-based layout
- Sugiyama et al. (1981) - Hierarchical DAG layout
§Performance Constraints (Muri Prevention)
- Hard limit: 500 nodes maximum for TUI rendering
- Default visible: Top 20 nodes by centrality (Mieruka)
Re-exports§
pub use super::graph_layout::LayoutAlgorithm;pub use super::graph_layout::LayoutConfig;pub use super::graph_layout::LayoutEngine;pub use super::graph_analytics::GraphAnalytics;pub use super::graph_analytics::GraphAnalyticsExt;pub use super::graph_analytics::COMMUNITY_COLORS;
Structs§
- Edge
- Edge in the graph
- Graph
- Graph for TUI visualization
- Graph
Renderer - Graph renderer
- Node
- Node in the graph
- Position
- 2D position for layout
- Rendered
Graph - Rendered graph as string buffer
Enums§
- Node
Shape - Node shape for accessibility (Respect for People per peer review #6)
- Node
Status - Node status with accessible visual encoding
- Render
Mode - Render mode for terminal compatibility
Constants§
- DEFAULT_
VISIBLE_ NODES - Default visible nodes (Mieruka per peer review #9)
- MAX_
TUI_ NODES - Maximum nodes for TUI rendering (Muri prevention per peer review #3)