Looks like you don't check for too many edges going into activeW. This is currently set to 2*target_ne, which is sensible for the bigger problems you used to do but for smaller systems this can easily overflow.
Set a maximum array size and add a check to not overflow.
Looks like you don't check for too many edges going into
activeW
. This is currently set to 2*target_ne, which is sensible for the bigger problems you used to do but for smaller systems this can easily overflow.Set a maximum array size and add a check to not overflow.