count of minimum spanning tree with adjacency matrix of a graph
4 ビュー (過去 30 日間)
古いコメントを表示
Hi friends I have a graph and it's adjacency matrix How can i calculate count of minimum spanning tree with matlab ? Thanks
0 件のコメント
回答 (2 件)
Walter Roberson
2016 年 8 月 9 日
編集済み: Walter Roberson
2016 年 8 月 9 日
2 件のコメント
Walter Roberson
2016 年 8 月 10 日
[r, c] = find(YourAdjacencyMatrix);
edgelist = [r, c]; %N by 2
g = graph(edgelist);
nt = nsptrees(g);
disp(nt)
Steven Lord
2016 年 8 月 9 日
1 件のコメント
Walter Roberson
2016 年 8 月 9 日
That method appears to find one minimum spanning tree, and does not appear to allow one to count the spanning trees.
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!