Research Article
Spontaneous Ad Hoc Mobile Cloud Computing Network
Algorithm 4
Program code of the class trustednet graph.
Typedef map<int,trustednet_Node *> Hash; | Class trustednet_Graph | { | private: | Hash hash; | Double getDistance(trustednet_Node* source, | trustednet_Node* destination) const; | public: | trustednet_Graph(); | trustedned_Node* getNode(int_id); | vector<int> dijkstra(trustednet_Node *source) const; | void writeGraph(std::ostream & os) const; | void addNode(trustednet_Node *node); | }; |
|