GRAVITATIONAL COLLAPSE AND FILAMENT FORMATION: COMPARISON WITH THE PIPE NEBULA