Hatcher, Algebraic Topology, Chapter 0
22. Let be a finite graph lying in a half-plane and intersecting the edge of in a subset of the vertices of . Describe the homotopy type of the `surface of revolution’ obtained by rotating around the edge of .
Proof. Consider the image shown in the document here.