code: public int[] loadDegrees(String relName, Direction direction) {
          int relType = relName == null ? ANY_RELATIONSHIP_TYPE : ktx.tokenRead().relationshipType(relName);
          return loadDegrees(relType, direction);
      }
docs: /*
  private int[] loadDegrees(ReadOperations ops, PrimitiveLongIterator nodeIds, int size, int relType, Direction direction) {
  int[] degrees = new int[size];
  Arrays.fill(degrees,-1);
  while (nodeIds.hasNext()) {
  long nodeId = nodeIds.next();
  
  degrees[mapId(nodeId)] = relType == ANY_RELATIONSHIP_TYPE ? ops.nodeGetDegree(nodeId, direction) : ops.nodeGetDegree(nodeId, direction, relType);
  }
  return degrees;
  }