Teaching degree in Mathematics and Physics in a network