tresoldi / dafsa

Library for computing Deterministic Acyclic Finite State Automata (DAFSA)
MIT License
27 stars 2 forks source link

change the to_graph method to output a directed graph #16

Open HoekR opened 1 year ago

HoekR commented 1 year ago

The documentation claims that the to_graph method outputs "a networkx directed weighted graph representing the DAFSA", but it now outputs an undirected graph. Changing line 927 in dafsa.py from

graph = nx.Graph()

to

graph = nx.DiGraph()

will remedy this

tresoldi commented 1 year ago

Ops, my fault there! Time for a new release, I suppose, while I slowly work in the new version. Thank you!