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
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
Copyright © 2021 JogjaFile Inc.
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.