graph TD
    code_intelligence[CodeIntelligence]
    complexity[ComplexityAnalyzer]
    dag_builder[DagBuilder]
    mermaid_generator[MermaidGenerator]
    ast_rust[RustAST]
    template_service[TemplateService]

    code_intelligence --> dag_builder
    dag_builder --> ast_rust
    dag_builder --> mermaid_generator
    code_intelligence --> complexity
    template_service --- ast_rust

    style code_intelligence fill:#FF6347,stroke-width:2px
    style complexity fill:#FF6347,stroke-width:2px
    style dag_builder fill:#FF6347,stroke-width:2px
    style mermaid_generator fill:#FFA500,stroke-width:2px
    style ast_rust fill:#FF6347,stroke-width:2px
    style template_service fill:#FFA500,stroke-width:2px
