code: static Partition createRangePartition(SqlgGraph sqlgGraph, AbstractLabel abstractLabel, String name, String from, String to) {
          Preconditions.checkArgument(!abstractLabel.getSchema().isSqlgSchema(), "createRangePartition may not be called for \"%s\"", Topology.SQLG_SCHEMA);
          Partition partition = new Partition(sqlgGraph, abstractLabel, name, from, to, PartitionType.NONE, null);
          partition.createRangePartitionOnDb();
          if (abstractLabel instanceof VertexLabel) {
              TopologyManager.addVertexLabelPartition(
                      sqlgGraph,
                      abstractLabel.getSchema().getName(),
                      abstractLabel.getName(),
                      name,
                      from,
                      to,
                      PartitionType.NONE,
                      null);
          } else {
              TopologyManager.addEdgeLabelPartition(sqlgGraph, abstractLabel, name, from, to, PartitionType.NONE, null);
          }
          partition.committed = false;
          return partition;
      }
docs: Create a range partition on an {@link AbstractLabel}
  
  @param sqlgGraph
  @param abstractLabel
  @param name
  @param from
  @param to
  @return