I have a graph where relationships have 2 weights (lets call them a and b), and I want to maximize the ratio of all of the weights in the k-sized tree.
My problem is if I make the weights a/b, this isn't going to minimise the tree in the way I want... I want to minimize sum(a)/sum(b) and not sum(a/b). Is there any weight that I could use that would atleast approximate sum(a)/sum(b) or is the k-spanning-tree algo just the wrong approach for this?
Thanks in advance :)