This class is a container for nodes and links. On destruction, all of them will get deleted.
std::set<Node*> V
std::set<Link*> E
~Graph()
cleanup()
void cleanup()
ostream& operator<<(ostream &o,const Graph &n)
writeNodes<>()
and writeLinks<>()
.
istream& operator>>(istream &i,Graph &n)
readNodes<>()
and readLinks<>()
, with NodeInserter
and LinkInserter
.