cmd += "let a = create vertex set type = 'Citizen', id = '" + threadId + "-" + i + "';";
cmd += "create edge from $a to " + superNode.getIdentity() + ";";
cmd += "commit retry " + MAX_RETRIES + ";";
cmd += "return $transactionRetries;";
final OCommandRequest command = graph.command(new OCommandScript("sql", cmd));
final Object res = command.execute();
if (res instanceof Integer) {
int retries = (Integer) res;
counter.incrementAndGet();