TraceRecorder<E> class final Graphs

A utility for recording events during a graph traversal or pathfinding.

A TraceRecorder records all events that occur during a traversal or pathfinding operation, and can be used to validate or replay the events that occurred during the operation; for example, to debug an algorithm or visualize the traversal.

Mixed in types

Constructors

TraceRecorder()

Properties

events List<TraceEvent<E>>
The events that have been recorded, in the order they were recorded.
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chain(Tracer<E> other) Tracer<E>
Returns a Tracer that chains this Tracer with another Tracer.
inherited
clear() → void
Clears all recorded events.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onSkip(E node) → void
Called when a node is skipped.
override
onVisit(E node) → void
Called when a node is visited.
override
pushScalar(TraceKey key, double value) → void
Adds a scalar value to the trace.
override
replayStepped(Tracer<E> tracer) Iterable<void>
Replays the recorded events using the provided tracer.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited