You can change the path that a wire takes to the block to which it is currently connected. And you can also rewire a block so that it is connected to a different block or to a different port of the same block.
Wires cannot create cycles. See
Wire restrictions for detailed information.
The port names of the attached blocks are then shown, and the ports attached to each end of the wire are highlighted.
Or to move the wire to a different port, drag the move icon (
) that is now shown at the input or output port (a hand pointer is shown in this case) to a different port.