Undefined function or variable 'simple_dijkstra'.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
vignesh raju
le 4 Fév 2016
Commenté : vignesh raju
le 4 Fév 2016
Getting the error message "Undefined function or variable 'simple_dijkstra'." when running the following code :
% closeness centrality
function C=closeness(Adjacency)
C=zeros(length(Adjacency),1); % initialize closeness vector
for i=1:length(Adjacency);
C(i)=1/sum( simple_dijkstra(Adjacency,i) );
end
Error in closeness (line 8)
C(i)=1/sum( simple_dijkstra(Adjacency,i) );
Can somebody please help.
0 commentaires
Réponse acceptée
Walter Roberson
le 4 Fév 2016
simple_dijkstra is not a Mathworks provided routine and is not part of the File Exchange. It appears to be part of https://github.com/jblocher/matlab-network-utilities
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!