I try to change the values of links for only the links to particular agents. So, I want to set the links of myself to every agent in the agent set relatedPersons to 0.6 and keep all other links unchanged. Can I achieve this using ask my-out-links? My code is:
breed [ persons person ]
undirected-link-breed [ connections connection]
connections-own [ trust ]
to setup
clear-all
create-persons 10
[
set grouped false
]
create-connections
reset-ticks
end
to create-connections
ask persons
[ setup-connection ]
end
to setup-connection
create-connections-with other persons
[ set trust 0.4 ]
end
to increaseConnection
let alonePersons count persons with [grouped = false]
let relatedPersons n-of (random alonePersons) persons
ask relatedPersons [
ask my-out-links [ set trust 0.6 ]
]
end
to go
increaseConnection
tick
end