From 48f6255fbc42c5693ab88b575e33011dff52b8bb Mon Sep 17 00:00:00 2001 From: c9s Date: Sun, 18 May 2014 08:19:32 +0800 Subject: [PATCH] document graphviz feature --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index d23f782..9053db8 100644 --- a/README.md +++ b/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 -----------------------