code: @Override
      public boolean containsVertex(Set<String> labels) {
          Objects.requireNonNull(labels, "labels cannot be null");
          // all labels must be present in vertex
          return this.labels.stream().allMatch(labels::contains);
      }
docs: Checks if the partition has the given vertex (labels in vertex). This implementation enforces that all
  labels in partition must be present in the vertex.
  
  @param labels The label to check in the partition.
  @return <code>true</code> if the vertex is in the partition, otherwise <code>false</code>.