code: function(from, letter) {
          const transitionMap = this.transitionGraph[from];
          if (!transitionMap || transitionMap[letter] === undefined) return -1;
          return transitionMap[letter];
      }
docs: @param from from state
  @param letter
  
  @return toState or -1