sanity check for nodes in loaded graph

This commit is contained in:
Dennis Luxen 2010-08-12 11:49:41 +00:00
parent 171815c9b7
commit 77df6616a9

View File

@ -130,6 +130,10 @@ int main (int argc, char *argv[])
} }
} }
} }
if(graph->GetOutDegree(node) == 0)
{
cerr << "found node with degree 0: " << node << endl;
}
} }
cout << "in " << get_timestamp() - time << "s" << endl; cout << "in " << get_timestamp() - time << "s" << endl;
cout << "building search graph ..." << flush; cout << "building search graph ..." << flush;