program algoritma djikstra
#include <cstdlib> #include <iostream> #define max 20 #define infinity 9999 using namespace std; class dijkstra{ private: int n; int graph[max][max]; int colour[max]; int start; int distance[max]; int predecessor[max]; enum {green,yellow,red}; public: void read_graph(); ...