Exemplo n.º 1
0
 @Override
 public int size() {
   return triGraph.nodeSet().size();
 }
Exemplo n.º 2
0
 /**
  * True iff triangle is a member of this triangulation. This method isn't required by
  * AbstractSet, but it improves efficiency.
  *
  * @param triangle the object to check for membership
  */
 public boolean contains(Object triangle) {
   return triGraph.nodeSet().contains(triangle);
 }
Exemplo n.º 3
0
 @Override
 public Iterator<Triangle> iterator() {
   return triGraph.nodeSet().iterator();
 }