Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nw:weak-component-clusters not sensitive to directed graphs #202

Open
timverlaan opened this issue Sep 1, 2022 · 1 comment
Open

nw:weak-component-clusters not sensitive to directed graphs #202

timverlaan opened this issue Sep 1, 2022 · 1 comment

Comments

@timverlaan
Copy link

I am trying to use nw:weak-component-clusters to remove clusters in which my agents get stuck when I traverse the graph. However, it seems it is not sensitive to directed links. What remains after using the function is a network with nodes which cannot be reached from all other nodes in the network. Is there a way to make this function sensitive to directed graphs? Or does anyone have a suggestion how I can do this?

@timverlaan
Copy link
Author

This would - I think - be a very extreme measure:

    ask nodes [ ask myself [if nw:path-to myself = false [ show "dying" ask out-link-neighbors [die] die ]]]
  ]  

I think I could get away with this, as there are only few place walkers get stuck:

  ask nodes [
    ask one-of nodes [ ask myself [if nw:path-to myself = false [ show "dying" ask out-link-neighbors [die] die ]]]
  ]  

However, both take rather a long time. Anyone any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant