TP
Model was written in NetLogo 6.0.4
•
Viewed 90 times
•
Downloaded 6 times
•
Run 0 times
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 [nodes node] ;; noeuds breed [walkers walker] ;; agents qui bougent entre les noeuds walkers-own [location] ;; mémorise le noeud où se trouve le walker to setup clear-all set-default-shape nodes "circle" create-nodes 5 [ set color Blue set size 2 set label who ] layout-circle nodes 10 ask node 0 [ setxy 0 13 ] ask node 1 [ setxy 7.5 7.5 ] ask node 2 [ setxy -7.5 7.5 ] ask node 3 [ setxy -5 -3 ] ask node 4 [ setxy 5 -3 ] ask node 0 [ create-link-to node 1 [tie set color pink set thickness 0.1 ]] ask node 0 [ create-link-to node 2 [tie set color pink set thickness 0.1 ]] ask node 1 [ create-link-to node 2 [tie set color pink set thickness 0.1 ]] ask node 2 [ create-link-to node 3 [tie set color pink set thickness 0.1 ]] ask node 4 [ create-link-to node 1 [tie set color pink set thickness 0.1 ]] ask node 4 [ create-link-to node 3 [tie set color pink set thickness 0.1 ]] ask node 4 [ create-link-to node 2 [tie set color pink set thickness 0.1 ]] ;; put some "walker" turtles on the network create-walkers 1 [ set color black set location one-of nodes move-to location ] reset-ticks end to go ask links [set thickness 0 ] ask walkers [ let new-location one-of [link-neighbors] of location ;; change the thickness of the link I just crossed over ask [link-with new-location] of location [ set thickness 0.5 set color green] move-to new-location set location new-location ] tick end
There is only one version of this model, created about 5 years ago by Mounir haddad.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
TP.png | preview | Preview for 'TP' | about 5 years ago, by Mounir haddad | Download |
This model does not have any ancestors.
This model does not have any descendants.