Skip to content

Commit

Permalink
docs: sample image for graph mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Lai-YT committed Apr 2, 2023
1 parent 32a300c commit 095f680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,12 @@ This will then write the graph into `some/path/and/filename.dot`.
- After the DOT file is generated, you can convert it into a PNG image with Graphviz.
```shell
dot -Tpng nfa.dot -O
dot -Tpng nfa.dot -o nfa.png
```
The PNG image will be located at `nfa.dot.png`.
![The NFA of "(a|b)*abb"](asset/nfa.png)
> **Note**
> The numbering of the states is related to the order of their creations.
See the [command line documentation of Graphviz](https://graphviz.org/doc/info/command.html) to learn more.

## 🚀 Development <a name = "development"></a>
Expand Down
Binary file added asset/nfa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 095f680

Please sign in to comment.