Handbook
Glossary
neighbours ( 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:
neighbours
( node astar -- seq )
Methods
USING:
accessors
combinators
path-finding
path-finding.private
;
M:
astar-simple
neighbours
neighbours>>
( n -- neighbours )
call-effect
;
USING:
accessors
assocs
path-finding
path-finding.private
;
M:
bfs
neighbours
neighbours>>
at
;
USING:
accessors
assocs
path-finding
path-finding.private
;
M:
dijkstra
neighbours
costs>>
at
keys
;