vertexset.put(vid, next.vertex().vdata());
}
} else {
// Apply reduce on edges, remove self and (or merge) duplicate edges.
// Optionally remove bidirectional edge.
Pair p = new Pair(next.edge().source(), next.edge().target());
// self edge
if (p.getL().equals(p.getR()))
continue;