#include #include #include #include #include #include using namespace std; struct Editor{ int ID; int Num; }; vectordata[10000]; map name; map::iterator pos; int author[10000]; string Erdos = "Erdos,P."; void bfs() { queueQ; Editor tmp,now; int i,id,nNum; memset(author,-1,sizeof(author)); tmp.ID = name[Erdos]; tmp.Num = 0; Q.push(tmp); while(!Q.empty()) { now = Q.front(); Q.pop(); id = now.ID; nNum = data[id].size(); for(i=0;i