


#Netlogo links code#
I have summarized the code to give you an idea of when I use ask and with, is there any better way to do it ?Īll of this code is called by another procedure which only has one ask agents, and it does exactly what I need it to do, but I thought I might have a wrong methodology. NETLOGO FEATURES Links are used for modeling the network. Also, you cannot have more than one undirected link of the same breed between the same two. This is a special agentset that can grow as links are added to the world, see the programming guide for more. Set Value-Of-The-Relationship Value-Of-The-Relationship + Value Please note the following excerpt from Netlogo Dictionary webpage: 'A node cannot be linked to itself. Reports the agentset consisting of all links.

Set Witnesses other agents in-radius vision with of Active_Agent ] 7 8 9 10 Muchos profesores usan NetLogo en sus planes de estudio. ask link 0 1 set color green unbreeded link connecting turtle 0 and. NetLogo es de código abierto y está disponible gratuitamente en la página web de NetLogo.6 Está en uso en una gran variedad de contextos educativos, desde la enseñanza básica hasta la universidad. Let Met out-link-neighbors with of my-out-links with ] To refer to breeded links you must use the singular breed form with the endpoints. I need to see if there is any agent nearby which might have a link to a caller agent with negative relationship value, now I am using following code: if any? out-link-neighbors with of my-out-links with ]
