Exemplo n.º 1
0
 private void recurseSelectEdges(TreeVertex root) {
   Vector edges = root.getEdgeList();
   for (int i = 0; i < edges.size(); i++) {
     TreeEdge edge = (TreeEdge) edges.elementAt(i);
     TreeVertex dest = edge.getDestVertex();
     if (m_vertexList.contains(dest)) {
       edge.setSelected(true);
       recurseSelectEdges(dest);
     }
   }
 }
Exemplo n.º 2
0
 public void selectEdges() {
   TreeVertex root = findRoot();
   if (root == null) return;
   recurseSelectEdges(root);
 }