function isVisited(prevSegment) {
			return (
				visited.has(prevSegment) ||
				segment.isLoopedPrevSegment(prevSegment)
			);
		}
Checks if a given previous segment has been visited.
@param {CodePathSegment} prevSegment A previous segment to check.
@returns {boolean} `true` if the segment has been visited.