count of minimum spanning tree with adjacency matrix of a graph
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi friends I have a graph and it's adjacency matrix How can i calculate count of minimum spanning tree with matlab ? Thanks
0 Commenti
Risposte (2)
Walter Roberson
il 9 Ago 2016
Modificato: Walter Roberson
il 9 Ago 2016
2 Commenti
Walter Roberson
il 10 Ago 2016
[r, c] = find(YourAdjacencyMatrix);
edgelist = [r, c]; %N by 2
g = graph(edgelist);
nt = nsptrees(g);
disp(nt)
Steven Lord
il 9 Ago 2016
1 Commento
Walter Roberson
il 9 Ago 2016
That method appears to find one minimum spanning tree, and does not appear to allow one to count the spanning trees.
Vedere anche
Categorie
Scopri di più su Graph and Network Algorithms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!