User Tools

Site Tools


python:graphviz

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python:graphviz [2025/01/26 14:44] – created odeftapython:graphviz [2025/01/26 14:46] (current) odefta
Line 16: Line 16:
  
 # Init transitions. # Init transitions.
-dfa.node('q0', 'q0 (inițială)')+dfa.node('q0', 'q0')
 dfa.node('q1', 'q1') dfa.node('q1', 'q1')
-dfa.node('q2', 'q2 (finală)', shape='doublecircle' # Stare finală cu două cercuri+dfa.node('q2', 'q2', shape='doublecircle')
  
 # Transitions # Transitions
Line 34: Line 34:
 dfa.render('afd_diagram', format='png', view=True) dfa.render('afd_diagram', format='png', view=True)
 </code> </code>
 +
 +Result:
 +{{:python:pasted:20250126-144618.png}}
  
python/graphviz.1737895447.txt.gz · Last modified: 2025/01/26 14:44 by odefta