NetLogo / NetLogo/NW-Extension
Add primitive for finding the component that contains a particular node
@nicolaspayette is already working on this.
Since Oct 12, 2013.
- Dominant language
- Scala
- Stars
- 66
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
From @arthurhjorth:
An idea for a primitive that would be incredibly helpful: often we have many components, and writing the NetLogo code for finding the component that contains a particular node is tedious. (Or at least the ways I've written it have been.) Would it be possible to write a primitive that accepts a turtle and returns an agentset containing all other turtles that that turtle is connected to?
- Something like:
nw:component-containing [turtle], returns all turtles in that component in the current context- Again, from turtle perspective:
(turtle)nw:my-component, returns all turtles in caller's component in the current context- Similar for links:
nw:links-in-component-containing [turtle1]- and
(turtles)nw:links-in-my-component
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are identified in the issue. Start by reviewing the proposed component-containing and my-component primitives, including their turtle and link variants and current-context behavior; done means agreeing on the primitive API and implementing the selected behavior with coverage for the requested cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100