code: @Override
      protected void generateRelationships(final GeneratorConfiguration config, final List<Long> nodes) {
          RelationshipGenerator relationshipGenerator = config.getRelationshipGenerator();
          List<Pair<Integer, Integer>> relationships = relationshipGenerator.generateEdges();
  
          Transaction tx = database.beginTx();
          try {
              int i = 0;
              for (Pair<Integer, Integer> input : relationships) {
                  Node first = database.getNodeById(nodes.get(input.first()));
                  Node second = database.getNodeById(nodes.get(input.other()));
                  config.getRelationshipCreator().createRelationship(first, second);
  
                  if (++i % config.getBatchSize() == 0) {
                      tx.success();
                      tx.close();
                      tx = database.beginTx();
                  }
              }
  
              tx.success();
          } finally {
              tx.close();
          }
      }
docs: {@inheritDoc}