how the current flows in the dugutal pins?

thank you for the advice MarkT.
I was not taught this convention 10 years ago in France, but I understand what you mean!

Regarding this version, yes, the leds and resistors are inactive, because the circuit is open.
I created switches in an attempt to illustrate that the digital pins act a bit like a switch: they can be 0V or 5V depending on the signal.

Is that correct?