An edge-based SIR model for sexually transmitted diseases on the contact network. (14th February 2018)