Beispiel #1
0
 public void removeEdge(EdgeModel model) {
   int id;
   if (model.getSourceModel() == this) {
     id = model.getOctantSourceId();
   } else {
     id = model.getOctantTargetId();
   }
   edges[id] = null;
 }
Beispiel #2
0
 public void addEdge(EdgeModel model) {
   int id = edgeLength++;
   growEdges(id);
   edges[id] = model;
   if (model.getSourceModel() == this) {
     model.setOctantSourceId(id);
   } else {
     model.setOctantTargetId(id);
   }
 }