Bing_Social Network Simulator

No preview image

1 collaborator

Default-person Bing Zhang (Author)


(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 462 times • Downloaded 30 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


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

to setup

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"]

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

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]]] 


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

Attached files

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

This model does not have any ancestors.

This model does not have any descendants.