Spread of fake news during crisis situation
No preview image
Model was written in NetLogo 6.1.0
•
Viewed 274 times
•
Downloaded 10 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
Info tab cannot be displayed because of an encoding error
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
extensions [ nw ] ;; extension for creating network turtles-own [ aware? ;; awareness status seed? ;; Seed status tick-become-aware ;; time of becoming aware ] globals [previous-count] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Methods to set up the network and initialize the nodes. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to setup ca reset-ticks let edge-prob (2 * mean-degree-of-network)/(num-agents - 1) ;; density of network decider nw:generate-random turtles links num-agents edge-prob [ ;; create the agents based on the slider in a random network set aware? false ;; adoption property is initialized setxy random-xcor random-ycor ;; separate the turtles spatially set color white ;; consistent appearance set shape "person" set seed? false ] ask n-of num-seed-informers turtles [ ;; setting up seed agents based on slider set aware? true set tick-become-aware -1 set color orange set seed? true ] repeat 30 [ layout-spring turtles links 0.2 10 10 ] set previous-count (count turtles with [aware?]) end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Method to run the model. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to go if (not any? turtles with [not aware?]) [ stop ] ifelse cascade-model? [ ask turtles with [tick-become-aware = (ticks - 1)] [ pass-adopt ] ask turtles with [not aware?][ adopt ] ][ ask turtles with [not aware?] [ adopt-bass-model ] ] ;; To Stop model from running forever when broadcast-infleunce is zero if (previous-count = count turtles with [aware?]) and (broadcast-influence = 0)[ stop ] set previous-count (count turtles with [aware?]) tick end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Method to reset the diffusion in same network ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to reset-diffusion reset-ticks ask turtles with [not seed?][ set aware? false set tick-become-aware -2 set color white ] ask turtles with [seed?][ set color orange set tick-become-aware -1 ] set previous-count (count turtles with [aware?]) clear-all-plots end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Method to reseeding the same network ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to reseed-network reset-ticks ask turtles [ set aware? false set tick-become-aware -2 set seed? false set color white ] ask n-of num-seed-informers turtles [ set aware? true set tick-become-aware -1 set seed? true set color orange ] set previous-count (count turtles with [aware?]) clear-all-plots end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Methods to adopt information in Cascade model ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to adopt if random-float 1 < broadcast-influence[ set aware? true set tick-become-aware ticks set color red ] end to pass-adopt let neighbors-unadopted link-neighbors with [not aware?] if count neighbors-unadopted > 0[ ask neighbors-unadopted[ if random-float 1 < influence-rate [ set aware? true set tick-become-aware ticks set color yellow ] ] ] end ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Method to adopt information in Bass model ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; to adopt-bass-model ifelse random-float 1.000 < broadcast-influence [ set aware? true set color red ][ let neighbors-adopted link-neighbors with [aware?] let total-neighbors link-neighbors if count total-neighbors > 0[ if not aware? and random-float 1.0 < (influence-rate * (count neighbors-adopted / count total-neighbors)) [ set aware? true set color yellow ] ] ] end
There is only one version of this model, created almost 4 years ago by Anshul Agrawal.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.