Arriving at optimal network weights