public default Stream<Pair<Object, Set<String>>> stream() {
        final List<Set<String>> labels = this.labels();
        final List<Object> objects = this.objects();
        return IntStream.range(0, this.size()).mapToObj(i -> Pair.with(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