The structure of weakly stable minimal hypersurfaces