This is a simple flow to implement a queue.
An example of usage is for a batch SQL insert, where "Protracted processing" sends batches to the database. The queue ensures that the batches are inserted in the right order.
If you highlight limit and flush nodes, right click and "Delete & reconnect" (to remove the queue mechanism) it retains the loop back wire, an illegal connection from a node to itself.
Technically there is nothing invalid with what it has done - it has removed the nodes as you've requested and maintained the connections that were there.
It is not 'illegal' to wire a node to itself; it's a valid thing to if, for example, your Function node is iterating over a list of items.