V currentVertex = queue.remove(); Collection<V> neighbors = graph.getNeighbors(currentVertex);
V currentVertex = queue.remove(); Collection<V> neighbors = graph.getNeighbors(currentVertex);
V currentVertex = queue.remove(); mSinkPartitionNodes.remove(currentVertex); mSourcePartitionNodes.add(currentVertex);
V currentVertex = queue.remove(); mSinkPartitionNodes.remove(currentVertex); mSourcePartitionNodes.add(currentVertex);
V v = queue.remove(); stack.push(v);