Skip to content

Commit

Permalink
Bug fix (change to the updated graph API)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiluTian committed Apr 4, 2024
1 parent 022a800 commit 36c1a07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Akka/src/test/scala/simulateUntilTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class simulateUntilTest extends FlatSpec {

f"The epidemics example" should "stop as soon as the termination condition is met" in {
val population = 10000
val agents = generated.example.epidemic.InitData(population, 0.01)
val graph = cloudcity.lib.Graph.ErdosRenyiGraph(population, 0.01)
val agents = generated.example.epidemic.InitData(graph)
(new API.SimulateUntil()).apply(agents, totalRounds, (ts: Iterable[Iterable[Serializable]]) => {
val x = ts.last.filter(i => i match {
case y: generated.example.epidemic.Person => y.health == 1
Expand Down

0 comments on commit 36c1a07

Please sign in to comment.