How to parse a DOT file in Python

前端 未结 6 2301
别跟我提以往
别跟我提以往 2020-12-15 00:11

I have a transducer saved in the form of a DOT file. I can see a graphical representation of the graphs using gvedit, but what if I want to convert the DOT file to an execut

6条回答
  •  余生分开走
    2020-12-15 00:44

    I haven’t tried it yet with the sample above, but NetworkX has a read_dot function that might have been a good way to solve this by converting the file into a graph object with good abilities to then analyze and test the graph.

提交回复
热议问题