Let us have a weighted graph $G=(V,E)$ with set of vertices $V$ and set of edges $E$, with a function $E\to V\times V$, a weight function $w:E\to\mathbb{R}_{>0}$ etc. Take the topological realization $|G|$, where if $e\in E$, then $length(e):=w(e)$, and two vertices $v,v'\in V$ such that there is a path $P\subset|G|$ (i.e. homeomorphic to a closed interval in $\mathbb{R}$) joining them. Then I think $V\bigcap P$ should be finite. Why?
For example, it seems to me I could not take as a graph having topological realization the interval $[0,1]$ the one given by vertices $V=\{1,1/2,1/3,1/4,...,1/n,...,0\}$ and edges connecting them with the natural weight, since there is not an edge connecting $0$ with any other vertex.
You can make an open covering of $|G|$ as follows: take the the interior of each edge (that is to say, the edges without their end points) and a small neighbourhood around each vertex (that contains at most a quarter of each adjoining edge). This is an open covering, and since $P$ is compact, it should be covered by finitely many of these open sets. Since each vertex is included in a unique open set in this covering, there can only by finitely many vertices on $P$.