Calculating a Network's Diameter
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nikitas Provatakis
il 3 Dic 2018
Risposto: Greg Heath
il 3 Dic 2018
Hi everyone,
I have a graph, G on which I have a applied the distances function such that
d=distances(G);
to get the matrix of shortest path distances between every node pair.
I would like someone to verify that the network diameter can be calculated as
max(d);
and the mean path length of the network as
mean(mean(d));
0 Commenti
Risposta accettata
Greg Heath
il 3 Dic 2018
mean(d(:))
Hope this helps
Thank you for formally accepting my answer
Greg
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox 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!