func VisualizeForMermaidWithGraphType(fsm *FSM, graphType MermaidDiagramType) (string, error) {
	switch graphType {
	case FlowChart:
		return visualizeForMermaidAsFlowChart(fsm), nil
	case StateDiagram:
		return visualizeForMermaidAsStateDiagram(fsm), nil
	default:
		return "", fmt.Errorf("unknown MermaidDiagramType: %s", graphType)
	}
}
VisualizeForMermaidWithGraphType outputs a visualization of a FSM in Mermaid format as specified by the graphType.
package fsm
import (
	"bytes"
	"fmt"
)
const highlightingColor = "#00AA00"
type MermaidDiagramType string
const (
	FlowChart MermaidDiagramType = "flowChart"
	StateDiagram MermaidDiagramType = "stateDiagram"
)