We all know that:
Every graph has an MST. The MST need not be unique, but it is unique if all the edge weights of the graph are distinct.
But if the weights of the edges in a connected graph are not all distinct, does it mean that there is more than one minimum spanning tree?
-
1$\begingroup$ not necessarily. For example if your graph is a tree, there is only one MST even if the weights are all the same $\endgroup$tbrugere– tbrugere2021年06月14日 15:48:44 +00:00Commented Jun 14, 2021 at 15:48
1 Answer 1
The MST can be unique even if edge weights repeat. For example, consider the graph on $\{1,\ldots,n\}$ in which the weight of $(1,2),(2,3),\ldots,(n-1,n)$ is 1ドル$ and the weight of all other edges is 2ドル$.
-
1$\begingroup$ @Toothless, why not accepting the answer by clicking the "checkmark" button underneath the vote buttons? (This comment will be deleted upon feedback.) $\endgroup$喜欢算法和数学– 喜欢算法和数学2022年02月28日 17:21:53 +00:00Commented Feb 28, 2022 at 17:21