code: @Override
      public int removeKamEdges(int[] edgeIds) throws SQLException {
          if (edgeIds == null)
              throw new InvalidArgument("edgeIds is null");
          if (edgeIds.length == 0)
              return 0;
  
          int batch = 0;
          int deletes = 0;
          PreparedStatement kesps = getPreparedStatement(DELETE_EDGE_STATEMENT);
          PreparedStatement keps = getPreparedStatement(DELETE_KAM_EDGES);
  
          // add delete command; submit batches per MAX_BATCH_COUNT
          for (int e : edgeIds) {
              kesps.setInt(1, e);
              kesps.addBatch();
              keps.setInt(1, e);
              keps.addBatch();
              batch++;
  
              if (batch == MAX_BATCH_COUNT) {
                  // remove from kam_edge_statement_map
                  kesps.executeBatch();
  
                  // remove from kam_edge
                  int[] rowsAffected = keps.executeBatch();
                  for (int d : rowsAffected) deletes += d;
              }
          }
  
          // submit batch for anything left over
          if (batch > 0) {
              // remove from kam_edge_statement_map
              kesps.executeBatch();
  
              // remove from kam_edge
              int[] rowsAffected = keps.executeBatch();
              for (int d : rowsAffected) deletes += d;
          }
          return deletes;
      }
docs: {@inheritDoc}