def getTransientStates(m):
    """Returns a list with the indices of the non-absorbing states of the matrix m"""
    t= list(range(len(m)))
    for r in range(len(m)):
      if(sum(m[r])==0): t.remove(r)
    return t