module ActionDispatch::Journey::NFA::Dot

def to_dot

:nodoc:
:nodoc:
:nodoc:
def to_dot
  edges = transitions.map { |from, sym, to|
    "  #{from} -> #{to} [label=\"#{sym || 'ε'}\"];"
  }
  <<-eodot
nfa {
r=LR;
shape = doublecircle];
pting_states.join ' '};
shape = circle];
join "\n"}
  eodot
end