public default void forEach(final BiConsumer<Object, Set<String>> consumer) {
        final List<Object> objects = this.objects();
        final List<Set<String>> labels = this.labels();
        for (int i = 0; i < objects.size(); i++) {
            consumer.accept(objects.get(i), labels.get(i));
        }
    }
Determines whether the path is a simple or not. A simple path has no cycles and thus, no repeated objects.

@return Whether the path is simple or not
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/Path.java