[SHOW]\n\n" , argv[0]);
}
/**
*
* This function checks if j is a neighbour of i, looking into the
* m positions of J starting at i*m
*
* In practice, the assumption is that J contains the m neighbours of
* node 0 in the first m positions, then the m neighbours of node 1,
* and to forth
*
*/
int __ws_is_neigh(unsigned int i, unsigned int j, unsigned int *J, unsigned int m){
int k;
for(k = i*m; k< (i+1)*m; k++){
if (J[k] == j)
return 1;
}
return 0;
}
int create_circle(unsigned int N, unsigned int m, unsigned int **J){
int K;
int i, j, l;
K = N *m;
*J = malloc(K * sizeof(unsigned int));
K = 0;
for(i=0; i