Undefined function or variable 'simple_dijkstra'.

1 vue (au cours des 30 derniers jours)
vignesh raju
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.

Réponse acceptée

Walter Roberson
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
  1 commentaire
vignesh raju
vignesh raju le 4 Fév 2016
Thanks Walter. The library was helpful in solving the problem.

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by