Whether state
is visited with respect to handle
.
Whether state
is visited with respect to handle
.
Sets state
to visited
with respect to handle
.
Sets state
to visited
with respect to handle
.
Initializes unset flags.
Avoid calling this directly, prefer withHandle
instead.
Avoid calling this directly, prefer withHandle
instead.
Avoid calling this directly, prefer withHandle
instead.
Avoid calling this directly, prefer withHandle
instead.
Executes a code block in the context of a new or reused state handler.
Executes a code block in the context of a new or reused state handler.
The result of the code block executed.
Executes a code block in the context nr
new state handlers
or alternatively in the context of the state handlers reuse
.
Executes a code block in the context nr
new state handlers
or alternatively in the context of the state handlers reuse
.
The result of the code block executed.
Decoupled implementation of state for
Graph
elements. State instances may carry data bound to multiple processes such as traversals. To distinguish between processes they communicate with state instances byHandle
s. Parallel processes are not yet supported. Currently state is just used to store whether an element counts as visited. For this purpose the bits of an Int are used as flags.