Let $R$ be a commutative ring with $1$ and $Spec(R)$ be the set of all prime ideals of $R$ with the Zariski topology. It is well-known that if $P$ and $Q$ are two prime ideals of $R$ with $P\subseteq Q$, then there exists a path from $P$ to $Q$. Now let $\frak{m}_1$  and $\frak{m}_2$ be two maximal ideals of $R$. I am looking for equivalent conditions under which there exists a path between $\frak{m}_1$  and $\frak{m}_2$.
Recall a path from a point $x$  to a point $y$ in a topological space $X$ is a continuous function $f$ from the unit interval 
$[0,1]$ to $X$ with $f(0) = x$ and $f(1) = y$.