Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The proof of Stallings's Ends Theorem is topological. Note that the set of ends of a group $\Gamma$ can be identified with $H^1(\Gamma,\mathbb{Z}_2\Gamma)$, so you don't have to define ends geometrically.