Chapter 8: Graphs

A graph makes the flow explicit. Each stage is a node. Each move between stages is an edge. Keep the control flow in plain Java, so every edge has a unit test. A graph database is a different tool, used for relationships between services. Chapter 8b covers it.

Figure 8.1. An illustrative watcher graph, assembled from the eval cases in Chapter 20, the triage skill in Chapter 14, and the approval in Chapter 9. Each arrow is one edge to unit-test. The course does not fix the stage order, and it does not define the low and medium path.

The graph above is a teaching sketch, not the course’s specification. What the watcher does with low and medium severity is NEEDS INPUT: the low and medium severity path, for example post without approval or record only.

docs