Bing_Social Network Simulator

No preview image

1 collaborator

Default-person Bing Zhang (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.0.4 • Viewed 452 times • Downloaded 28 times • Run 0 times
Download the 'Bing_Social Network Simulator' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

turtles-own
[
  source
]

breed [news a-news]
breed [people node]

to setup
  clear-all
  setup-nodes
  setup-network  
  reset-ticks
end 

to setup-nodes
  set-default-shape turtles "circle"
  create-people number-of-nodes
  [
    setxy (random-xcor * 0.95) (random-ycor * 0.95)
    set color green
    
  ]
  
  ask one-of turtles[set color pink]
  create-news 1 [setxy random-xcor random-ycor set color yellow set shape "square"]
end 

to setup-network
  let num-links (ave-node-degree * number-of-nodes) / 2
  while [count links < num-links]
  [
    ask one-of people
    [
      let choice (min-one-of (other people with [not link-neighbor? myself]) [distance myself])
      if choice != nobody [create-link-with choice]
    ]
    
  ]
   ; make the network look a little prettier
  repeat 15
  [
    layout-spring turtles links 0.3 (world-width / (sqrt number-of-nodes)) 1
  ]
end 

to go
  ask turtles with [color = pink]
  [let spread one-of link-neighbors with [color = green]
    if spread != nobody [if random-float 100 < news-is-interesting [ask spread [set color pink]]] 
    ]

  tick
end 

There is only one version of this model, created almost 11 years ago by Bing Zhang.

Attached files

File Type Description Last updated
Bing_May 13.pdf pdf Progress Report_May 13 almost 11 years ago, by Bing Zhang Download
Bing_May 20.pdf pdf Progress Report_May 20 almost 11 years ago, by Bing Zhang Download
Bing_May 27.pdf pdf Progress Report_May 27 almost 11 years ago, by Bing Zhang Download

This model does not have any ancestors.

This model does not have any descendants.