Zum Inhalt springen

Sandbox/Graphviz

aus www.kruedewagen.de, Homepage von Ralf und Judith Krüdewagen (Kruedewagen)

This page is for testing the functionality of the Graphviz extension using graphviz tool and language.

Editing Notes:

  • Each graph on a page must have its own name to be set after the (di)graph keyword.
  • After a graph has changed you often need to reload the page. Check the notices.
  • See Graphviz for further help.

Example 1

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


Example 2

<graphviz border='frame' format='png' caption='Graph for example no. 2'>
digraph example2 {Hello->World->Europe->Germany->NRW}
</graphviz>


Example 3

<graphviz renderer='neato' caption='Graph for example no. 3'>
graph example3 {
  monkey -- human;
  human -- dog;
  human -- cat;
  cat -- mouse;
  mouse -- corn;
}
</graphviz>


Example 4

<graphviz renderer='neato' caption='Graph for example no. 4'>
graph example4 {
  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>

See also