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