# graph **Repository Path**: zhao-qiuling/graph ## Basic Information - **Project Name**: graph - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-16 - **Last Updated**: 2026-04-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Campus Graph Demo 这是一个专门用于学习 Graph 思想的最小 Spring Boot Demo。 它刻意避免退化成线性 workflow,而是显式展示: - State - Node - Edge - Conditional Routing - Parallel Branch - Merge / Join - Loop / Retry - Terminal Node ## 图结构 ```text StartNode -> RouteNode RouteNode -> DIRECT -> DirectAnswerNode -> EndNode -> COMPLEX -> KeywordRetrieveNode -> COMPLEX -> VectorRetrieveNode KeywordRetrieveNode -> MergeContextNode VectorRetrieveNode -> MergeContextNode MergeContextNode -> JudgeNode JudgeNode -> ENOUGH -> AnswerNode -> EndNode -> RETRY -> RewriteQueryNode -> FALLBACK -> FallbackNode -> EndNode RewriteQueryNode -> KeywordRetrieveNode -> VectorRetrieveNode ``` ## 运行 ```powershell .\mvnw.cmd spring-boot:run ``` ## 测试 ```powershell .\mvnw.cmd test ``` ## 接口 ```powershell curl http://localhost:8080/api/campus-graph/examples curl http://localhost:8080/api/campus-graph/graph curl -X POST http://localhost:8080/api/campus-graph/ask -H "Content-Type: application/json" -d "{\"question\":\"学生证丢了怎么办?\"}" ```