Two graphs are homeomorphic if they can be made isomorphic by inserting new vertices of degree 2 into edges.