// Prepare Partition context
WorkerContext workerContext =
graphState.getGraphTaskManager().getWorkerContext();
PartitionContext partitionContext = partition.getPartitionContext();
synchronized (workerContext) {
partitionContext.preSuperstep(workerContext);
}
graphState.setPartitionContext(partition.getPartitionContext());
for (Vertex<I, V, E, M> vertex : partition) {
// Make sure every vertex has this thread's