Dynamically switching vertices in planar graphs