int count = 0;
while(count++ < nedges) {
Edge e = (Edge)objin.readObject();
e.getNodeA().setVisited(false);
e.getNodeB().setVisited(false);
builder.addEdge(e);
}
//rebuild node collection
for (
Iterator itr = builder.getGraph().getEdges().iterator(); itr.hasNext();