예제 #1
0
 public void removeEdge(EdgeModel model) {
   int id;
   if (model.getSourceModel() == this) {
     id = model.getOctantSourceId();
   } else {
     id = model.getOctantTargetId();
   }
   edges[id] = null;
 }
예제 #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);
   }
 }