Extension/Diagrams

From PKC
Jump to navigation Jump to search

Context

This extension updates the deprecated diagram extensions and is usable.

This extension can be found here: Diagrams

Demonstration

<graphviz> digraph G {

   input [URL="PKC Workflow/Input"]
   layout=neato;
   input->process[len=1.5] ;
   process->output;
   process->recursive; 
   recursive->process

} </graphviz>

Example 1

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

Example 2

<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>

Example 3

<graphviz caption="Graph for example no. 3 (contains Wiki-Links)" alt="phylogenetic tree" format="png"> digraph example3 {

 node [shape=plaintext];
 Mollusca [URL="w:Mollusca"];
 Neomeniomorpha [URL="w:Neomeniomorpha"];
 X1 [shape=point,label=""];
 Caudofoveata [URL="w:Caudofoveata"];
 Testaria [URL="w:Testaria"];
 Polyplacophora [URL="w:Polyplacophora"];
 Conchifera [URL="w:Conchifera"];
 Tryblidiida [URL="w:Tryblidiida"];
 Ganglioneura [URL="w:Ganglioneura"];
 Bivalvia [URL="w:Bivalvia"];
 X2 [shape=point,label=""];
 X3 [shape=point,label=""];
 Scaphopoda [URL="w:Scaphopoda"];
 Cephalopoda [URL="w:Cephalopoda"];
 Gastropoda [URL="w:Gastropoda"];
 Mollusca->X1->Testaria->Conchifera->Ganglioneura->X2->Gastropoda
 Mollusca->Neomeniomorpha
 X1->Caudofoveata
 Testaria->Polyplacophora
 Conchifera->Tryblidiida
 Ganglioneura ->Bivalvia
 X2->X3->Cephalopoda
 X3->Scaphopoda

} </graphviz>