JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Function fsl_to_dot

    • Render an FSL string directly to graphviz dot source.

      import { fsl_to_dot } from 'jssm/viz';
      const dot = fsl_to_dot('a -> b;');

      // suppress state-name labels
      const dot2 = fsl_to_dot('a -> b;', { hide_state_labels: true });

      const dot_with_footer = fsl_to_dot('a -> b;', { footer: 'label="caption";' });
      // 'digraph G { ... label="caption"; }'

      Parameters

      Returns string

      A complete graphviz dot source string.