class node { double x, y; String label; node(double xx, double yy, String ll) { x=xx; y=yy; label=ll; } } class graph { int n; node [] tabnode; boolean [][] adjacency; public String toString() { String res=""; res=nbNode()+" "+nbEdge()+"\n"; int i, j; String val; for (i=0; i0) return argmin(degree()); else return -1; } int argmin(int [] tab) { int winner=0; int min=tab[0]; int i; for (i=1; inodes)) result.adjacency[i][j-1]=adjacency[i][j]; if ((i>nodes)&&(jnodes)&&(j>nodes)) result.adjacency[i-1][j-1]=adjacency[i][j]; } return result; } // Get a subgraph from the current graph graph subgraph(boolean [] remove) { int i, j; int nr=0; for (i=0; ibestd) { bestd=currentd; bestG=G.duplicate(); } } return bestG; } }