It's great that you're learning NetLogo! We hope that you're able to find 
help in developing your model. Note that this list is for netlogo 
developers, contributors, and advanced users discussing netlogo internals. 
Questions about modeling and general NetLogo use are typically asked on 
netlogo-users <https://groups.yahoo.com/neo/groups/netlogo-users/info>.There 
is also a fairly active NetLogo community on StackOverflow, which can be 
great for asking specific questions about particular primitives or 

As this is off-topic for this list, I'm locking replies. For anyone on this 
list who is interested in responding to this question, it looks like it's 
already been posted here on StackOverflow 
If it shows up on NetLogo-users, I would also encourage you to respond to 
it there.

Robert Grider

On Tuesday, August 8, 2017 at 2:28:53 AM UTC-5, Waseem Akram wrote:
> Hi, everyone!
> I'm using a small network where I use some nodes as sources and some are 
> targets. Now I want to implement a local routing algorithm. 
> Here are steps of the algorithm.
>    - walkers are placed on sources
>    -  At each node, each walker chooses the next node of its neighbor's
>    - If all the neighboring nodes have not been visited, then the next 
>    neighbor is chosen among the nodes that have not been visited.
>    - If all the neighboring nodes have been visited previously, then the 
>    next node is chosen uniformly among all the neighbors. The walker is 
>    forced to return to a previously visited node.
>    - With a small probability, the next node may be chosen uniformly 
>    among all the neighboring nodes.
>    - If a cycle is detected, that is, if the walker is forced to return 
>    to an already visited node.
>    - When the destination node is reached, stop
> 1 go
> 2 get-list-of-neighbors
> 3 select one-of from list of neighbors
>     check is-visited:
>     if yes: [remove from the list 
>            check is-circle
>            if yes: Die
>            else go to setp 3]
>   4 else Move-to selected node
>   5 check is-target?
>     if yes: die 
>     else add to list-of-visited and  Go to step1 
> I'm new to NetLogo and doesn't know how to implement these steps. Please 
> help and guide me.

You received this message because you are subscribed to the Google Groups 
"netlogo-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to netlogo-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to