Network-Design Problems in Graphs and on the Plane