initial impl. of network with weighted links