Solution (source code)

= Solution

In polar coordinates $(r,\varphi)$, a radial aster
$$
\theta=\varphi
$$
and a circulating vortex
$$
\theta=\varphi+\frac\pi2
$$
both have $q=+1$. The continuous family $\theta=\varphi+\chi$, $0\leq\chi\leq\pi/2$, deforms one into the other without making $\mathbf p$ vanish away from the core, proving their topological equivalence. The hyperbolic configuration $\theta=-\varphi$ has $q=-1$.