Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef EDGE_H
- #define EDGE_H
- #include <iostream>
- #include "Node.h"
- #include"Exceptions.h"
- using namespace std;
- class Node;
- class Edge
- {
- public:
- Edge(Node * adjacent,int weight);
- ~Edge();
- int getWeight();
- Node * getAdjacent();
- friend bool operator== (Edge& l,Edge& r);
- friend ostream& operator<< (ostream& stream, const Edge& edge);
- private:
- int weight;
- Node * adjacent;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment