Guest User

Network.h

a guest
May 16th, 2013
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #ifndef NETWORK_H
  2. #define NETWORK_H
  3.  
  4. #include "Node.h"
  5. #include "Exceptions.h"
  6.  
  7. class Network
  8. {
  9.     public:
  10.         Network();
  11.         ~Network();
  12.         void addNode(string nodeName);
  13.         void removeNode(string nodeName);
  14.         void addEdge(string source,string destination,int weight);
  15.         void removeEdge(string source,string destination);
  16.        
  17.         friend Network& operator+(Network& l,Network& r);
  18.         friend ostream& operator<<(ostream& stream,Network& network);
  19.         friend bool operator==(Network& l,Network& r);
  20.     private:
  21.         vector<Node *> nodes;
  22. };
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment