User Tools

Site Tools


playground:playground

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
playground:playground [2012/11/09 12:53]
andy [Graphviz]
playground:playground [2013/07/11 16:59]
andy
Line 1: Line 1:
 ====== PlayGround ====== ====== PlayGround ======
- 
-This page is used to check syntax uncertainties and test the installation of new plugins. 
- 
-===== Graphviz ===== 
- 
-<​graphviz>​ 
-digraph finite_state_machine { 
-        graph [dpi=60]; 
- rankdir=LR;​ 
- size="​9,​5"​ 
- node [shape = doublecircle];​ LR_0 LR_3 LR_4 LR_8; 
- node [shape = circle]; 
- LR_0 -> LR_2 [ label = "​SS(B)"​ ]; 
- LR_0 -> LR_1 [ label = "​SS(S)"​ ]; 
- LR_1 -> LR_3 [ label = "​S($end)"​ ]; 
- LR_2 -> LR_6 [ label = "​SS(b)"​ ]; 
- LR_2 -> LR_5 [ label = "​SS(a)"​ ]; 
- LR_2 -> LR_4 [ label = "​S(A)"​ ]; 
- LR_5 -> LR_7 [ label = "​S(b)"​ ]; 
- LR_5 -> LR_5 [ label = "​S(a)"​ ]; 
- LR_6 -> LR_6 [ label = "​S(b)"​ ]; 
- LR_6 -> LR_5 [ label = "​S(a)"​ ]; 
- LR_7 -> LR_8 [ label = "​S(b)"​ ]; 
- LR_7 -> LR_5 [ label = "​S(a)"​ ]; 
- LR_8 -> LR_6 [ label = "​S(b)"​ ]; 
- LR_8 -> LR_5 [ label = "​S(a)"​ ]; 
-} 
-</​graphviz>​ 
  
 <​graphviz>​ <​graphviz>​
 digraph sequence { digraph sequence {
-  graph [dpi=60]; 
   node [shape=box];​   node [shape=box];​
-  {rank=same; "Client"; "Log"; "Proxy";​ "​Server";}+  {rank=same; "a"; "c"; "b";}
   node [shape=point];​   node [shape=point];​
-  "Client" -> "​src_1"​ [arrowhead=none];​ +  "a" -> "​src_1"​ [arrowhead=none];​ 
-  "Proxy" -> "​dst_1"​ [arrowhead=none];​ +  "b" -> "​dst_1"​ [arrowhead=none];​ 
-  {rank=same; "​src_1"​ -> "​dst_1"​ [label="​GET /image.png"];}+  {rank=same; "​src_1"​ -> "​dst_1"​ [label="​Hello there"];}
   "​dst_1"​ -> "​src_2"​ [arrowhead=none];​   "​dst_1"​ -> "​src_2"​ [arrowhead=none];​
-  "Server" -> "​dst_2"​ [arrowhead=none];​ +  "src_1" -> "​dst_2"​ [arrowhead=none];​ 
-  {rank=same; "src_2" -> "dst_2" [label="​GET /image.png"];}+  {rank=same; "dst_2" -> "src_2" [label="​Hello" ​dir=back];}
   "​dst_2"​ -> "​src_3"​ [arrowhead=none];​   "​dst_2"​ -> "​src_3"​ [arrowhead=none];​
-  "Log" -> "​dst_3"​ [arrowhead=none];​ +  "src_2" -> "​dst_3"​ [arrowhead=none];​ 
-  {rank=same; "​src_3"​ -> "​dst_3"​ [label="​Foo"];} +  {rank=same; "​src_3"​ -> "​dst_3"​ [label="​Can I have 5 pounds?"];} 
-  "src_3" -> "​src_4"​ [arrowhead=none];​ +  "dst_3" -> "​src_4"​ [arrowhead=none];​ 
-  "src_2" -> "​dst_4"​ [arrowhead=none];​ +  "src_3" -> "​dst_4"​ [arrowhead=none];​ 
-  {rank=same; "​dst_4"​ -> "​src_4"​ [label="​200 OK" dir=back];}+  {rank=same; "​dst_4"​ -> "​src_4"​ [label="​No" dir=back];}
   "​dst_4"​ -> "​src_5"​ [arrowhead=none];​   "​dst_4"​ -> "​src_5"​ [arrowhead=none];​
-  "src_1" -> "​dst_5"​ [arrowhead=none];​ +  "c" -> "​dst_5"​ [arrowhead=none];​ 
-  {rank=same; "dst_5" -> "src_5" [label="​200 OK" ​dir=back];} +  {rank=same; "src_5" -> "dst_5" [label="​Isn't b mean"];} 
-  "dst_5" -> "​src_6"​ [arrowhead=none];​ +  "src_4" -> "​src_6"​ [arrowhead=none];​ 
-  "dst_3" -> "​dst_6"​ [arrowhead=none];​ +  "dst_5" -> "​dst_6"​ [arrowhead=none];​ 
-  {rank=same; "​src_6"​ -> "​dst_6"​ [label="​Bar"];}+  {rank=same; "​src_6"​ -> "​dst_6"​ [label="​No I'm not"];}
   node [shape=box]   node [shape=box]
-  {rank=same; "end_Client" [label="​Client"​];"​end_Log" [label="​Log"​];"​end_Proxy" [label="​Proxy"​];"​end_Server"​ [label="​Server"];} +  {rank=same; "end_a" [label="​a"​];"​end_c" [label="​c"​];"​end_b" [label="​b"];} 
-  "src_6" -> "end_Client" [arrowhead=none];​ +  "src_5" -> "end_a" [arrowhead=none];​ 
-  "​dst_6"​ -> "end_Log" [arrowhead=none];​ +  "​dst_6"​ -> "end_c" [arrowhead=none];​ 
-  "src_5" -> "end_Proxy" [arrowhead=none];​ +  "src_6" -> "end_b" [arrowhead=none];​
-  "​src_4"​ -> "​end_Server"​ [arrowhead=none];​ +
 } }
 </​graphviz>​ </​graphviz>​
  
playground/playground.txt · Last modified: 2016/07/06 06:57 (external edit)