Spread modeller made using C# Language
A group project for Algorithm Startegy assessment.
This is an application built using WPF on Visual Studio with C# and .Net Framework 4.8 to model the COVID-19 virus spread using BFS Algorithm. The Graph modelled in the app is built using Microsoft Automatic Graph Layout (MSAGL), a .NET library and tool to make graphs. It models the spread using Breadth First Search algorithm, with cities infected represented as nodes and their connectivites as edges on a graph.
- Visual Studio (recommended using 2019, the app is developed using VS2019) with C# Desktop App Package in VS
- .NET Framework (v.4.8)
-
Open Project using Visual Studio
-
In Solution Explorer, right click and select 'Batch Build'
-
Check the Production Build (if needed you can try the Debug option)
-
Click 'Build' button on the right side of the window
-
Now the build should have relative path from this project directory
WpfApp1/bin/
There should be Release and Debug version for which version that you have been checked.
- Navigate to bin directory
- Run
WpfApp1.exe
- Enjoy
- Install .NET in your Linux with the respective Linux package manager.
- Install WINE for your Linux distro to run the windows exec file.
- If for some reason you cannot run the executable with WINE, install .NET for WINE here.
- Run
WpfApp1.exe
with WINE. Enjoy!
Prerequisite: You should have open the program from the instruction before!
- Select Place (Node) with press the button, and then select apropriate .txt file
- Do the same for Route (Edge) with pressing other button there.
- Input the days after first infection on given fields and press the button.
- The result's graph now should have appeared in the middle window, followed by the step/path of the infection in the right side.