Vocabulary
graphs

Inputs
vertexan object
quota quotation with stack effect ( vertex -- edges )


Outputs
seta hash-set


Word description
Outputs all vertices reachable from vertex via edges given by the quotation. The set always includes vertex.

Definition

: closure ( vertex quot: ( vertex -- edges ) -- set )
HS{ } closure-as ; inline