cycle property
Whether the path is considered a cycle.
A cycle is a found path that starts and ends at the same node.
Implementation
bool get cycle => isFound && start == goal;
Whether the path is considered a cycle.
A cycle is a found path that starts and ends at the same node.
bool get cycle => isFound && start == goal;