Two ways to spend the same education budget: a uniform random sample (spray and pray) vs the highest-degree hubs, ties broken stably towards lower node numbers so the pick is deterministic. The origin is never educated; they post the fake. rng.Shuffle does a seeded Fisher-Yates, so the random pick is reproducible too. min() is a builtin since Go 1.21. |
||
|---|---|---|
| .. | ||
| cascade.go | ||
| cascade_test.go | ||
| educate.go | ||
| educate_test.go | ||
| graph.go | ||
| graph_test.go | ||
| holmekim.go | ||
| holmekim_test.go | ||
| rng.go | ||
| rng_test.go | ||