Improving adjacencies list reading

The adjacencies list does not need to start at zero,
correcting the algorithm to handle this case.