I would to know how can the following claim can be generalized:
Theorem. A nonempty open set in the plane is connected if and only if any two of its points can be joined by a polygon which lies in the set.
An example of generalisation would be plane$=\mathbb{R}^2$ into $\mathbb{R}^n$ into metric space (or some special type of metric space).
"joined by polygon", I assume, could be generalised to "path-connected" (meaning a continuous map $[0,1]\to X$).