mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-05 07:41:11 +00:00
Removed buggy code that double counted adjacencies
This commit is contained in:
parent
f699ed372f
commit
bdb6ff2ebd
1 changed files with 1 additions and 10 deletions
|
@ -247,19 +247,10 @@ printf("\n");
|
||||||
|
|
||||||
// Recount the number of adjacencies after merge
|
// Recount the number of adjacencies after merge
|
||||||
for(i=0;i<mockIndex;i++)
|
for(i=0;i<mockIndex;i++)
|
||||||
cnt_adj[i] = 0;
|
cnt_adj[i] = adjs[i].nadj;
|
||||||
for(i=0;i<mockIndex;i++)
|
|
||||||
{
|
|
||||||
for (j=0;j<adjs[i].nadj;j++)
|
|
||||||
{
|
|
||||||
cnt_adj[adjs[i].adj[j]]++;
|
|
||||||
cnt_adj[i]++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PMS
|
// PMS
|
||||||
for (i=0;i<mockIndex;i++)
|
for (i=0;i<mockIndex;i++)
|
||||||
//for (i=0;i<np;i++)
|
|
||||||
// END PMS
|
// END PMS
|
||||||
fwrite(&cnt_adj[i],1,sizeof(int),adj);
|
fwrite(&cnt_adj[i],1,sizeof(int),adj);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue