count of minimum spanning tree with adjacency matrix of a graph
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi friends I have a graph and it's adjacency matrix How can i calculate count of minimum spanning tree with matlab ? Thanks
0 comentarios
Respuestas (2)
Walter Roberson
el 9 de Ag. de 2016
Editada: Walter Roberson
el 9 de Ag. de 2016
2 comentarios
Walter Roberson
el 10 de Ag. de 2016
[r, c] = find(YourAdjacencyMatrix);
edgelist = [r, c]; %N by 2
g = graph(edgelist);
nt = nsptrees(g);
disp(nt)
Steven Lord
el 9 de Ag. de 2016
1 comentario
Walter Roberson
el 9 de Ag. de 2016
That method appears to find one minimum spanning tree, and does not appear to allow one to count the spanning trees.
Ver también
Categorías
Más información sobre Graph and Network Algorithms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!