I am reading Strichartz' The Way of Analysis. He mentions in the beginning of chapter on contionuous functions that
"Now it is indeed possible to make a precise mathematical definition of connected sets in the plane so that the graph of a continuous function is connected. However, it turns out that there are functions that are not continuous whose graphs are also connected. "
I cannot imagine any of such graphs. Can I get example of a function, preferably, from $\Bbb R$(or its subset) to $\Bbb R$ such that graph is connected while function is not continuous?