We propose a topological characterization of Hamiltonians describing classical waves. Applying it to the magnetostatic surface spin waves that are important in spintronics applications, we settle the speculation over their topological origin. For a class of classical systems that includes spin waves driven by dipole-dipole interactions, we show that the topology is characterized by vortex lines in the Brillouin zone in such a way that the symplectic structure of Hamiltonian mechanics plays an essential role. We define winding numbers around these vortex lines and identify them to be the bulk topological invariants for a class of semimetals. Exploiting the bulk-edge correspondence appropriately reformulated for these classical waves, we predict that surface modes appear but not in a gap of the bulk frequency spectrum. This feature, consistent with the magnetostatic surface spin waves, indicates a broader realm of topological phases of matter beyond spectrally gapped ones.The principle of bulk-edge correspondence is a cornerstone in the field of topological phases of matter [1]: at the boundary of a system whose bulk frequency spectrum is topologically nontrivial, there should appear localized edge modes with eigenfrequencies in a gap of the bulk spectrum. This principle underlies the unconventional stability of chiral edge states in quantum Hall insulators [2] and Dirac surface states of topological insulators [3], and has more recently led to predictions of edge modes in various classical systems [4-6]. The bulk system topology is usually characterized by a topological invariant defined for Hamiltonians describing spatially unbounded systems with specified symmetry operations. It dictates the existence and number of topologically protected edge modes. The corresponding hallmark of these edge states is their robustness against symmetrypreserving perturbations.The insensitiveness of edge states to material parameters strikes a chord in the field of magnetism. Since their discovery in 1960 [7], ferromagnetic spin waves known as "magnetostatic surface waves" (MSSWs) have been a subject of various experimental and theoretical studies. These edge modes owe their intrinsic chiral structure to dipole-dipole interactions. MSSWs propagate perpendicular to the ordered magnetization regardless of the sample geometry, be it a slab [8] or a sphere [9]. They are known to be anomalously robust against back scatterings [10,11], hinting towards a topological origin. The chirality and robustness render them interesting for many fundamental studies, e.g. for non-reciprocal transport of spin [12] and heat [13]. Today, in the context of magnon spintronics [14], MSSWs are almost exclusively used in studies of spin-wave transport in microstructures since they offer the largest decay length of all available modes and are easily excited by the commonly used inductive microwave antennas. It is therefore of fundamental interest whether MSSWs are indeed topologically protected or not.In this Letter, we show that the bulk Hamiltonian of spin ...