Bose–Einstein condensation: a network theory approach