Hopefully ensures NIM graph will always be big enough

Since graph has dramatically grown in size, a check has been added to
see if the sublist actually contains vertices