TP
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
(a general understanding of what the model is trying to show or explain)
HOW IT WORKS
(what rules the agents use to create the overall behavior of the model)
HOW TO USE IT
(how to use the model, including a description of each of the items in the Interface tab)
THINGS TO NOTICE
(suggested things for the user to notice while running the model)
THINGS TO TRY
(suggested things for the user to try to do (move sliders, switches, etc.) with the model)
EXTENDING THE MODEL
(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)
NETLOGO FEATURES
(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)
RELATED MODELS
(models in the NetLogo Models Library and elsewhere which are of related interest)
CREDITS AND REFERENCES
(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)
Comments and Questions
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 over 6 years ago by Mounir haddad.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
TP.png | preview | Preview for 'TP' | over 6 years ago, by Mounir haddad | Download |
This model does not have any ancestors.
This model does not have any descendants.