Deal with case where vertex has no predecessors