def _get_accepted(self, graph):
        """
        Find the accepted states
        Args:
            graph (DFA): The DFA states
        Return:
            list: Returns the list of the accepted states
        """
        accepted = []
        for state in graph.states:
            if state.final != TropicalWeight(float('inf')):
                accepted.append(state)
        return accepted