all possible spanning tree

how can i generate all possible spanning tree ranked by the order of minimality ( based on edge weighting)., so that from the Ic I can select.

回答 (1 件)

Rajani Mishra
Rajani Mishra 2020 年 8 月 2 日
編集済み: Rajani Mishra 2020 年 8 月 2 日

0 投票

You can try below approach to find out all possible spanning trees:-
  • Check weather the complete path is a spanning tree or not. You can use function graphisspantree for this step
  • Calculate total weight of the path.
Thus, you can find out all spanning trees/paths and their corresponding weights.
Hope this helps!

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2018a

質問済み:

2020 年 7 月 25 日

編集済み:

2020 年 8 月 2 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by