Calculating a Network's Diameter
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Nikitas Provatakis
le 3 Déc 2018
Réponse apportée : Greg Heath
le 3 Déc 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 commentaires
Réponse acceptée
Greg Heath
le 3 Déc 2018
mean(d(:))
Hope this helps
Thank you for formally accepting my answer
Greg
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Deep Learning Toolbox 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!