JasperHavenhand / Honours-Year-Project

COMP390 - Honours Year Project: Temporal Network (Re-)Design Strategies for Early Epidemic Containment
0 stars 0 forks source link

transformVertices issues #10

Open JasperHavenhand opened 3 years ago

JasperHavenhand commented 3 years ago

There appears to be some issues with calling the transformVertices method as part of the token dissemination. The disseminate method in the TemporalGraphHandler class appears to continue before the transformVertices threads have finished. It also appears that transformVertices iterates over each vertex a number times relative to how many times it has been called itself. The following console output shows this:

timestep 0
timestep 1
Copelabs3
Copelabs4
Copelabs5
Copelabs6
Copelabs7
Copelabs8
Copelabs1
Copelabs12
Copelabs2
timestep 2
Copelabs3
Copelabs3
Copelabs4
Copelabs4
Copelabs5
Copelabs5
Copelabs6
Copelabs6
Copelabs7
Copelabs7
Copelabs8
Copelabs8
Copelabs1
Copelabs1
Copelabs12
Copelabs12
Copelabs2
Copelabs2
timestep 3
...
JasperHavenhand commented 3 years ago

This seem to be linked to vertices becoming uninfected. It appears that old copies of the vertices are being considered, allowing for a past uninfected copy to pass through without receiving the virus. This would explain the duplication of vertices with each call.