Infering and calibrating triadic closure in a dynamic network