deleteNodeAtXY

fun deleteNodeAtXY(x: Int, y: Int)

Deletes the node at the specified (x, y) coordinates in the grid.

If the coordinates are outside the grid, or the node is already deleted, a warning is printed, and no action is taken.

Parameters

x

The x-coordinate of the node to delete.

y

The y-coordinate of the node to delete.

Throws

Called the function after edges have been added to the grid is not supported