private String wordWrap(final String longString, final int maxLengthPerLine, final int newLineIndent) {
        if (longString.length() <= maxLengthPerLine)
            return longString;

        StringBuilder builder = new StringBuilder();
        int counter = 0;
        for (int i = 0; i < longString.length(); i++) {
            if (0 == counter) {
                builder.append(longString.charAt(i));
            } else if (counter < maxLengthPerLine) {
                builder.append(longString.charAt(i));
            } else {
                builder.append("\n");
                for (int j = 0; j < newLineIndent; j++) {
                    builder.append(" ");
                }
                builder.append(longString.charAt(i));
                counter = 0;
            }
            counter++;
        }

        return builder.toString();
    }
A pretty-print representation of the traversal explanation.

@return a {@link String} representation of the traversal explanation
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/AbstractExplanation.java