Cooperative aspects of optimal trees in weighted graphs