document graphviz feature
This commit is contained in:
parent
452b53c2f8
commit
48f6255fbc
1 changed files with 22 additions and 0 deletions
22
README.md
22
README.md
|
@ -86,6 +86,28 @@ end
|
|||
```
|
||||
|
||||
|
||||
Rendering routes with graphviz
|
||||
-------------------------------
|
||||
|
||||
The `test_gvc_render_file` API let you render the whole route trie into a image.
|
||||
|
||||
[Imgur](http://i.imgur.com/J2LdzeK.png)
|
||||
|
||||
Or you can even export it with dot format:
|
||||
|
||||
```dot
|
||||
digraph g {
|
||||
graph [bb="0,0,205.1,471"];
|
||||
node [label="\N"];
|
||||
"{root}" [height=0.5,
|
||||
pos="35.097,453",
|
||||
width=0.97491];
|
||||
"#1" [height=0.5,
|
||||
pos="35.097,366",
|
||||
width=0.75];
|
||||
....
|
||||
```
|
||||
|
||||
Use case in PHP
|
||||
-----------------------
|
||||
|
||||
|
|
Loading…
Reference in a new issue