I am trying to select the agents to which I link that have a high value for my link to that agent. Then, I want to move to one of those agents. I cannot figure out how to select the agents at the other end of my link, where the link has a particular value and then move to one-of those agents with a high value of 0.9 for the link. How can I achieve this?
breed [ people ]
undirected-link-breed [ connections connection ]
connections-own [ trust ]
to setup-all-connections
ask people [setup-connection]
end
to setup-connection
create-connections-with other people [set trust 0.4]
end
to go
move-people
tick
end
to move-people
ask people [
let chance random 100
if chance < 80
[
let highTrust my-out-connections with [trust = 0.9]
move-to one-of people with [member? other-end highTrust]
]
]
end