This example demonstrates how to use MRPT's C++ implementation of the Dijkstra algorithm for searching optimal paths in a directed, weighted graph. See also the Doxygen reference for the class mrpt::graphs::CDijkstra.

The part that invokes the Dijsktra algorithm is this constructor call:
const size_t SOURCE_NODE = 0; CDijkstramyDijkstra( graph_links, SOURCE_NODE, myDijkstraWeight);
See the complete source code of the example for more details: http://mrpt.googlecode.com/svn/trunk/samples/dijkstra-example/