my-<breeds> my-links4.0

my-<breeds> my-links Turtle Command

Reports an agentset of all links connected to the caller of the corresponding breed, regardless of directedness. Generally, you might consider using my-out-links instead of this primitive, as it works well for either directed or undirected networks (since it excludes directed, incoming links).

crt 5
ask turtle 0
[
  create-links-with other turtles
  show my-links ;; prints the agentset containing all links
                ;; (since all the links we created were with turtle 0 )
]
ask turtle 1
[
  show my-links ;; shows an agentset containing the link 0 1
]
end
If you only want the undirected links connected to a node, you can do my-links with [ not is-directed-link? self ].

Take me to the full NetLogo Dictionary