One random threshold per DIRECTED edge, drawn once per world: scenarios sharing thresholds differ only in who is educated, the prototype's 'same world, different lever' trick. The cascade is plain BFS in rounds; an educated student receives the fake but never forwards it, which is the entire effect of the lever. The result stores the first-reached round per node (exactly what a frontend animation needs). Tests hand-craft a 4-node line graph with exact thresholds, so every expectation is exact: spread, directional blocking, educated cutoff. |
||
|---|---|---|
| .. | ||
| cascade.go | ||
| cascade_test.go | ||
| graph.go | ||
| graph_test.go | ||
| holmekim.go | ||
| holmekim_test.go | ||
| rng.go | ||
| rng_test.go | ||