1
#ifndef GRAPH_H_INCLUDED
2
#define GRAPH_H_INCLUDED
20
bool operator<(const Edge &e)const
22
return (a<e.a)||((a==e.a)&&(b<e.b));
27
Graph(int numberOfVertices, bool isDirected_=false):
29
isDirected(isDirected_)
32
void addEdge(int a, int b)
34
edges.insert(Edge(a,b));
36
int diameter(int *timesAttained=0)const;
37
string toString()const;