Scala tool to choose the weights of OSPF networks