a draft solution to the set_weight. fixing all links at creation with unitary weight.