2010-05-28 5 views
5

Je voudrais voir un exemple d'un algorithme de recherche de Dijkastra pour un graphe construit en utilisant RGL de Ruby (http://rgl.rubyforge.org/) ou GRATR (http://rubyforge.org/projects/gratr/).Comment construire un graphe pondéré avec RGL ou GRATR de Ruby pour réaliser l'algorithme de Dijkstra?

Je sais que GRATR a le support de Dijkastra mais je ne sais pas vraiment comment l'utiliser, toute aide serait appréciée.

+0

sa dernière réponse était correcte: « Ceci est un exemple de dijkstra dans GRATR http://gratr.rubyforge.org/svn/examples/graph_self.rb " – mentatkgs

Répondre

Questions connexes