Package-level declarations
Functions
Link copied to clipboard
fun Grid.visualizeGrid(currentVisitedNodes: List<Tile> = currentVisitedNodes(), finalPath: List<Tile> = finalPath() ?: emptyList(), nodeDistances: List<Double> = currentVisitedNodes.map { tile ->
runCatching { distanceTo(tile) }.getOrDefault(Double.MAX_VALUE)
}, screenTitle: String = "Grid visualizer (Click space to pause and resume)", animationTicTimeOverride: Double? = null, closeOnEnd: Boolean = false, startPaused: Boolean = false, screenWidthMultiplier: Double = 1.0)
Visualizes the grid and optionally its traversal process using a graphical interface.
Link copied to clipboard
Visualizes the strongly connected components (SCCs) of a Grid.