cycle property

bool cycle

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;