Calculate compartment migration fluxes over a directed HIV epidemic network.
Calculate compartment migration fluxes over a directed HIV epidemic network.: a task in hiv-aids-benchmark: HIV/AIDS Harbor Benchmark (Harbor dataset). Implement migration flux.py . Read migration cases.json and write migration results.json . Each input case supplies compartment counts in nodes…
The task
Implement `migration_flux.py`. Read `migration_cases.json` and write `migration_results.json`. Each input case supplies compartment counts in nodes and directed migration edges. Return a net-flux matrix with one row per node and four columns ordered [S,I,C,A]. Preserve case order and identifiers. Use only Python's…
Part of scalingX/hiv-aids-benchmark.