Optionally carries a CameFromJournal for tracking came-from relationships. When cameFromJournal is non-empty, discover records (v, cameFrom) pairs. The start vertex is absent from the came-from map — it has no predecessor.
Use the factory methods on the companion object to construct instances.
Value parameters
cameFromJournal
optionally, a journal recording came-from relationships.
Visits a vertex v, evaluates it using the implicit Evaluable instance, and records the result in the journal. The visitor is returned after the operation with an updated state.
Visits a vertex v, evaluates it using the implicit Evaluable instance, and records the result in the journal. The visitor is returned after the operation with an updated state.
Value parameters
ev
the implicit Evaluable instance to extract a result of type R from the vertex v.
v
the vertex to be visited.
Attributes
Returns
the updated Visitor after the vertex is processed, with its journal containing the new (v, Option[R]) entry.