@Override public void addNode(int id, String label, Map<String, Object> attributes) { super.addNode(id, label, attributes); if (id > this.maxNodeId) { this.maxNodeId = id; } }
private void doNodeInjection() { for (AnonymousNode node : nodesToAdd) { super.addNode(++this.maxNodeId, node.getLabel(), node.getAttributes()); } }