Handbook
Glossary
closure ( vertex quot: ( vertex -- edges ) -- set )
Factor handbook
»
The language
»
Collections
»
Directed graph utilities
Prev:
remove-vertex ( vertex edges graph -- )
Vocabulary
graphs
Inputs
vertex
an
object
quot
a
quotation
with stack effect
( vertex -- edges )
Outputs
set
a
hash-set
Word description
Outputs all vertices reachable from
vertex
via edges given by the quotation. The set always includes
vertex
.
Definition
IN:
graphs
:
closure
( vertex quot: ( vertex -- edges ) -- set )
HS{
}
closure-as
;
inline