public static void atMaster(final Step<?, ?> step, boolean atMaster) {
        if (step instanceof GraphComputing)
            ((GraphComputing) step).atMaster(atMaster);
        if (step instanceof TraversalParent) {
            for (final Traversal.Admin<?, ?> local : ((TraversalParent) step).getLocalChildren()) {
                for (final Step<?, ?> s : local.getSteps()) {
                    GraphComputing.atMaster(s, atMaster);
                }
            }
            for (final Traversal.Admin<?, ?> global : ((TraversalParent) step).getGlobalChildren()) {
                for (final Step<?, ?> s : global.getSteps()) {
                    GraphComputing.atMaster(s, atMaster);
                }
            }
        }
    }
Some steps should behave different whether they are executing at the master traversal or distributed across the worker traversals.
The default implementation does nothing.

@param atMaster whether the step is currently executing at master
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GraphComputing.java