function ft = fsa_type(FSA) % is it a NFSA? DFSA? if iscell(FSA.delta) ft = 'n'; else ft = 'd'; end return