Making it possible to use arbitrary vertex names

That’s up to us to decide. I don’t think we need to have functions for a single vertex if there is an equivalent function that takes a sequence of vertices. Instead, I would improve the docstring and tutorials to explain our users how things work.

As of combinations of labels/integers, again I don’t think that’s useful to support. We should have a vision: either labels are first-class citizens or they are not (like now). If they are, the default is to take the sequence to mean labels: we should pass it through the fast-lookup dict to obtain the corresponding list of integers for the C layer. If the lookup fails and the input sequence contains integers, we can opt to make a second try and send it straight down to the C layer before failing. That would give some back compatibility without sacrificing the honorary position of labels from this point on.

1 Like

Yup this all sounds very reasonable. Overall I’m +1 for only accepting sequences (at least at first, helper methods can always be added later) and for only accepting labels.

Perhaps this is useful?

We would need to vectorize __hash__ and feed the hash into this.

No, it wasn’t my own experience that brought it to mind, as I haven’t done much with it yet. It was just the aim stated in the datatable documentation of improving on how indexing works in pandas.