ENH: indexing with names on sparse graph