Differentiate between invalid and non-existant edge and vertex