Handbook
Glossary
neighbors ( node astar -- seq )
Vocabulary
path-finding
Inputs
node
a node
astar
an instance of a subclassed
astar
tuple
Outputs
seq
a sequence of nodes
Word description
Return the list of nodes reachable from
node
.
Definition
IN:
path-finding
GENERIC:
neighbors
( node astar -- seq )
Methods
USING:
accessors
combinators
path-finding
path-finding.private
;
M:
astar-simple
neighbors
neighbors>>
( n -- neighbors )
call-effect
;
USING:
accessors
assocs
path-finding
path-finding.private
;
M:
bfs
neighbors
neighbors>>
at
;
USING:
accessors
assocs
path-finding
path-finding.private
;
M:
dijkstra
neighbors
costs>>
at
keys
;