You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently Walk() only has a WalkDepth() implementation. I would like to add a WalkBreadth() one. It seems straight-forward enough:
Add an option in walkOptions (and process it in Walk() instead of its WalkDepth() callee).
Implement a basic (sequential) BFS leveraging the same GetLinks() and visit callbacks.
Before taking a stab at it I need confirmation that this is the right path. Particularly, I see that a BFS search is already implemented in the traverse package which overlaps substantially with the logic in Walk().
The text was updated successfully, but these errors were encountered:
I don't have a clear example of how to use the proposed alternative and since porting to it would demand an unknown amount of time/effort I'm pushing ahead with my implementation here, but this is clearly wrong as I'm duplicating functionality already available.
Currently
Walk()
only has aWalkDepth()
implementation. I would like to add aWalkBreadth()
one. It seems straight-forward enough:walkOptions
(and process it inWalk()
instead of itsWalkDepth()
callee).GetLinks()
andvisit
callbacks.Before taking a stab at it I need confirmation that this is the right path. Particularly, I see that a BFS search is already implemented in the
traverse
package which overlaps substantially with the logic inWalk()
.The text was updated successfully, but these errors were encountered: