A coffee cup with a handle and a doughnut are, to a topologist, the same thing: imagining the cup made of modelling clay, one can turn it into a doughnut without tearing or gluing anything. A ball, by contrast, cannot become a doughnut: the hole is missing. Topology studies the properties that survive such deformations. Before Poincaré The idea had forerunners. Euler solved in 1736 the problem of the bridges of Königsberg, which depends not on distances but only on how things are connected, and discovered the polyhedron formula, $V - E + F = 2$. Riemann classified surfaces by their number of holes. Leibniz had dreamed of an “analysis of position”, analysis situs, a geometry of position rather than measurement. But a general theory was missing, above all for shapes of more than two dimensions.
In the fifth supplement to Analysis situs, published in 1904, Poincaré ended with a question. He had just discovered that Betti numbers were not enough to recognise a three-dimensional sphere, and he proposed using the fundamental group instead. There remains one question to treat: is it possible for the fundamental group of V to reduce to the identity substitution and yet for V not to be homeomorphic to the hypersphere? … But this question would carry us too far. — Henri Poincaré, Fifth supplement to Analysis situs (1904)