127128129130131132133134135136137
SelectionTree st = new SelectionTree(null); st.addVertices(nodes); if (nodes.length == 0) { return st; } st.addEdge(e(st.getRoot(), nodes[0])); for (int i = 1; i < nodes.length; i++) { st.addEdge(e(nodes[0], nodes[i])); } return st; }
129130131132133134135136137138139
if (nodes.length == 0) { return st; } st.addEdge(e(st.getRoot(), nodes[0])); for (int i = 1; i < nodes.length; i++) { st.addEdge(e(nodes[0], nodes[i])); } return st; } /**