def __getitem__(self, sl):
        # should ID lookup have preference??
        if isinstance(sl, (int, slice)):
            return self._by_ind[sl]
        return self._by_id[sl]
Returns the edge corresponding to the specified slice/index or raises an IndexError.
dataset/ETHPy150Open cidles/graf-python/src/graf/graphs.py/EdgeList.__getitem__