Difference between revisions of "Sandbox"

From UVOO Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
## Examples
 
## Examples
  
 +
https://www.mediawiki.org/wiki/Extension:GraphViz#Example_1
  
−
<graphviz border='frame' format='png'>
+
<graphviz renderer="neato" caption="Graph for example no. 2">
 +
graph example2 {
 +
  run -- intr;
 +
  intr -- runbl;
 +
  runbl -- run;
 +
  run -- kernel;
 +
  kernel -- zombie;
 +
  kernel -- sleep;
 +
  kernel -- runmem;
 +
  sleep -- swap;
 +
  swap -- runswap;
 +
  runswap -- new;
 +
  runswap -- runmem;
 +
  new -- runmem;
 +
  sleep -- runmem;
 +
}
 +
</graphviz>
 +
 
 +
<container>
 +
<graphviz border='frame' format='svg'>
 
digraph D {
 
digraph D {
  
Line 15: Line 35:
 
}
 
}
 
</graphviz>
 
</graphviz>
 +
</container>
  
  

Revision as of 07:52, 19 December 2018

Examples

https://www.mediawiki.org/wiki/Extension:GraphViz#Example_1

<graphviz renderer="neato" caption="Graph for example no. 2"> graph example2 {

 run -- intr;
 intr -- runbl;
 runbl -- run;
 run -- kernel;
 kernel -- zombie;
 kernel -- sleep;
 kernel -- runmem;
 sleep -- swap;
 swap -- runswap;
 runswap -- new;
 runswap -- runmem;
 new -- runmem;
 sleep -- runmem;

} </graphviz>

<container> <graphviz border='frame' format='svg'> digraph D {

A [shape=diamond]

 B [shape=box]
 C [shape=circle]

A -> B [style=dashed, color=grey]

 A -> C [color="black:invis:black"]
 A -> D [penwidth=5, arrowhead=none]

} </graphviz> </container>

<graphviz border='frame' format='png'> digraph D {

A [shape=diamond]

 B [shape=box]
 C [shape=circle]

A -> B [style=dashed, color=grey]

 A -> C [color="black:invis:black"]
 A -> D [penwidth=5, arrowhead=none]

} </graphviz>

<graphviz border='frame' format='png' caption='Graph for example no. 1'> digraph example1 {Hello->World} </graphviz>

Other resources

sequence-js example ​sequence Alice->Bob: Hello Bob, how are you? Note right of Bob: Bob thinks Bob-->Alice: I am good thanks! ​