forked from projectmesa/mesa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update D3 library and some text changes
Update D3 library and some text changes
- Loading branch information
Showing
5 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,44 @@ | ||
# Virus on a Network | ||
|
||
TODO | ||
## Summary | ||
|
||
This model is based on the netlogo model "Virus on Network". | ||
|
||
### Citations | ||
For more information about this model, read the netlogo's webpage: http://ccl.northwestern.edu/netlogo/models/VirusonaNetwork | ||
|
||
This model is based on the netlogo model "Virus on Network". | ||
## Installation | ||
|
||
To install the dependencies use pip and the requirements.txt in this directory. e.g. | ||
|
||
``` | ||
$ pip install -r requirements.txt | ||
``` | ||
|
||
## How to Run | ||
|
||
To run the model interactively, run ``run.py`` in this directory. e.g. | ||
|
||
``` | ||
$ python run.py | ||
``` | ||
|
||
Then open your browser to [http://127.0.0.1:8521/](http://127.0.0.1:8521/) and press Reset, then Run. | ||
|
||
## Files | ||
|
||
* ``run.py``: Launches a model visualization server. | ||
* ``model.py``: Contains the agent class, and the overall model class. | ||
* ``server.py``: Defines classes for visualizing the model (network layout) in the browser via Mesa's modular server, and instantiates a visualization server. | ||
|
||
## Further Reading | ||
|
||
The full tutorial describing how the model is built can be found at: | ||
http://mesa.readthedocs.io/en/master/tutorials/intro_tutorial.html | ||
|
||
|
||
[Stonedahl, F. and Wilensky, U. (2008). NetLogo Virus on a Network model](http://ccl.northwestern.edu/netlogo/models/VirusonaNetwork). | ||
Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. | ||
|
||
Stonedahl, F. and Wilensky, U. (2008). NetLogo Virus on a Network model. http://ccl.northwestern.edu/netlogo/models/VirusonaNetwork. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. | ||
|
||
Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. | ||
[Wilensky, U. (1999). NetLogo](http://ccl.northwestern.edu/netlogo/) | ||
Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.