VisitImpl

data class VisitImpl<T, S>(val state: S, val node: Node<T>) : Visit<T, S>

Default Visit implementation returned by Visit.of. Not meant to be instantiated directly; use Visit.of (or the it.unibo.tuprolog.utils.graphs.visitOf shorthand) instead.

Constructors

Link copied to clipboard
constructor(state: S, node: Node<T>)

Properties

Link copied to clipboard
open override val node: Node<T>

The node reached by this step of the traversal.

Link copied to clipboard
open override val state: S

The traversal-specific state associated with reaching node (e.g. the depth at which it was found).