Skip to content

nw:weak-component-clusters not following seed? #200

@piepmachientje

Description

@piepmachientje

When I run a netlogo code with nw:weak-component-clusters in it, it returns the components in a different random order each time, even when random-seed is specified. I've tried with netlogo 5.1.0, 6.1.0 and 6.2.2 and two different machines, but the problem persists.

extensions [nw]

to setup
  clear-all
  random-seed 5
  create-turtles 1000
  ask turtles [create-link-with one-of other turtles]
  print (nw:weak-component-clusters)
end

, for example will sometimes print '[(agentset, 2 turtles) (agentset, 15 turtles) (agentset, 59 turtles) (agentset, 4 turtles) (agentset, 920 turtles)]', sometimes '[(agentset, 2 turtles) (agentset, 920 turtles) (agentset, 15 turtles) (agentset, 59 turtles) (agentset, 4 turtles)]', sometimes '[(agentset, 15 turtles) (agentset, 59 turtles) (agentset, 920 turtles) (agentset, 4 turtles) (agentset, 2 turtles)]' etc. Any idea what could be causing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions