Assume the function $h\colon \Bbb R\to \Bbb R$ with dense graph such that $h\restriction C$ connected for any connected set $C\subset\Bbb R.$ let $f\colon (0,1)\to \Bbb R$ be a homeomorphism.
Now define a function $g\colon \Bbb R\to \Bbb R$ as $g=h\circ f$ on $(0,1)$ and 0 on its complement. I want to check if the graph of $g$ will be connected or not. It is clearly that the graph will be as union of three connected pieces.
I need to check if the whole graph will be connected or not. I think it will be problem in the end points. Any help will be helpful.