template <class LINK, class NODE,class INSERTER> istream& readLinks(istream &i,INSERTER ins,const std::map<string,NODE*> &where)

This template function reads back links as written by writeLinks<>()

INSERTER must have operator() (LINK*) (for example, class LinkInserter)
LINK must be default constructible and have a method readFrom(istream&)

For each couple of node addresses read from the stream, a new link is constructed, and attached to the respective nodes in memory (whose address is retrieved via where). Then the link is passed to ins()