def get_equiv_class(fsm, gamma, state):
    """
    Return the equivalence class for gamma state belongs to. The distributed
    knowledge based equivalence fo gamma containing state is returned.
    
    fsm -- the model
    gamma -- a set of agents of fsm
    """
    return fsm.equivalent_states(state, gamma) & fsm.reachable_states
