def __getitem__(self, sl):
        # should ID lookup have preference??
        if isinstance(sl, (int, slice)):
            return self._by_ind[sl]
        return self._by_id[sl]
See: GPXTrackSegment.smooth()
dataset/ETHPy150Open cidles/graf-python/src/graf/graphs.py/EdgeList.__getitem__--crossover with--dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpx.py/GPXTrack.smooth