fix mixup of vertex id and adjaceny list index