OK. There are at least two errors in the attached code (the associated .h file has a few in too I am sure). I get the second when I eliminate most of the references to the array "nodes" which seems to be perfectly well defined (I can loop through it and printf its elements on screen) but any attempt to access its contents in the following manner:
results in a bus error.Code:c[p]=sumarray(adjacency[nodes[p]],N);
I'm using gcc on a unix system and I'm completely exhausted from trying to work out what's wrong.
PS: please excuse all the diagnostic printf statements in the code!