count of minimum spanning tree with adjacency matrix of a graph
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi friends I have a graph and it's adjacency matrix How can i calculate count of minimum spanning tree with matlab ? Thanks
0 commentaires
Réponses (2)
Walter Roberson
le 9 Août 2016
Modifié(e) : Walter Roberson
le 9 Août 2016
2 commentaires
Walter Roberson
le 10 Août 2016
[r, c] = find(YourAdjacencyMatrix);
edgelist = [r, c]; %N by 2
g = graph(edgelist);
nt = nsptrees(g);
disp(nt)
Steven Lord
le 9 Août 2016
1 commentaire
Walter Roberson
le 9 Août 2016
That method appears to find one minimum spanning tree, and does not appear to allow one to count the spanning trees.
Voir également
Catégories
En savoir plus sur Graph and Network Algorithms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!