Maximum weight forest?

140 Views Asked by At

If I have a graph and I need to find a maximum weight forest, but because a graph is already a forest, is it enough to find the maximum spanning tree?

thanks to anyone who can help

1

There are 1 best solutions below

7
On BEST ANSWER

A forest is just an acyclic graph (not necessarily connected, but its connected components are trees). To find a maximum weight forest for a graph, you can find a maximum weight forest on each of its connected components. If there are negative weights, the resulting forest need not be spanning.