Answer
The shape of the flask allows for sterility of the flask to be maintained but also allows for boiling the broth.
Work Step by Step
The swan-neck allows the flask to be boiled without it exploding--there is an outlet for pressurized gas from boiling--but keeps microbes from flowing back into the flask past the neck.