summaryrefslogtreecommitdiff
path: root/graphics/dot2tex/doc/docgraphs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/dot2tex/doc/docgraphs')
-rw-r--r--graphics/dot2tex/doc/docgraphs/balls.dot13
-rw-r--r--graphics/dot2tex/doc/docgraphs/ex1.dot3
-rw-r--r--graphics/dot2tex/doc/docgraphs/ex1b.dot4
-rw-r--r--graphics/dot2tex/doc/docgraphs/ex2.dot4
-rw-r--r--graphics/dot2tex/doc/docgraphs/ex3.dot8
-rw-r--r--graphics/dot2tex/doc/docgraphs/ex4.dot10
-rw-r--r--graphics/dot2tex/doc/docgraphs/lblstyle.dot11
-rw-r--r--graphics/dot2tex/doc/docgraphs/nodesize.dot7
-rw-r--r--graphics/dot2tex/doc/docgraphs/pgfarrows.dot18
-rw-r--r--graphics/dot2tex/doc/docgraphs/preproc1.dot6
-rw-r--r--graphics/dot2tex/doc/docgraphs/pstarrows.dot15
-rw-r--r--graphics/dot2tex/doc/docgraphs/simple.dot5
-rw-r--r--graphics/dot2tex/doc/docgraphs/simplelbl.dot9
-rw-r--r--graphics/dot2tex/doc/docgraphs/topaths1.dot8
-rw-r--r--graphics/dot2tex/doc/docgraphs/valignmode1.dot7
15 files changed, 128 insertions, 0 deletions
diff --git a/graphics/dot2tex/doc/docgraphs/balls.dot b/graphics/dot2tex/doc/docgraphs/balls.dot
new file mode 100644
index 0000000000..0a8a82d5c4
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/balls.dot
@@ -0,0 +1,13 @@
+// This graph uses special PGF/TikZ styles to create some interesting
+// visual effects. To get the snaked edges run dot2tex with the -s option
+// to force straight edges. Example
+// $ fdp -Txdot balls.dot | dot2tex -s > balls.tex
+graph G {
+ node [shape=circle, fixedsize=True, width="0.2", style="ball color = green", label=""];
+ edge [style="snake=zigzag, green"];
+ a_1 -- c -- a_2;
+ c [style="ball color=black"];
+ edge [style="snake=snake, blue", color=red];
+ node [style="ball color = red", label=""];
+ a_3 -- c -- a_4 --a_3;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/ex1.dot b/graphics/dot2tex/doc/docgraphs/ex1.dot
new file mode 100644
index 0000000000..aa26d70308
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/ex1.dot
@@ -0,0 +1,3 @@
+digraph G {
+ a_1-> a_2 -> a_3 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/ex1b.dot b/graphics/dot2tex/doc/docgraphs/ex1b.dot
new file mode 100644
index 0000000000..89503eebad
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/ex1b.dot
@@ -0,0 +1,4 @@
+digraph G {
+ node [shape=circle];
+ a_1-> a_2 -> a_3 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/ex2.dot b/graphics/dot2tex/doc/docgraphs/ex2.dot
new file mode 100644
index 0000000000..dbbeb14dea
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/ex2.dot
@@ -0,0 +1,4 @@
+digraph G {
+ a_1 [texlbl="$\frac{\gamma}{x^2}$"];
+ a_1-> a_2 -> a_3 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/ex3.dot b/graphics/dot2tex/doc/docgraphs/ex3.dot
new file mode 100644
index 0000000000..69dcd79a40
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/ex3.dot
@@ -0,0 +1,8 @@
+digraph G {
+ start;
+ end;
+ node [texmode="math"];
+ a_1;
+ a_2;
+ start -> a_1 -> a_2 -> end;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/ex4.dot b/graphics/dot2tex/doc/docgraphs/ex4.dot
new file mode 100644
index 0000000000..b382ad1cd9
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/ex4.dot
@@ -0,0 +1,10 @@
+digraph G {
+ a_1 [texlbl="$\frac{\gamma}{2x^2+y^3}$"];
+ a_1 -> a_2 -> a_3 -> a_1
+ node [texmode="math"];
+ a_1 -> b_1 -> b_2 -> a_3;
+ b_1 [label="\\frac{\\gamma}{x^2}"];
+ node [texmode="verbatim"]
+ b_4 [label="\\beta"]
+ a_3 -> b_4 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/lblstyle.dot b/graphics/dot2tex/doc/docgraphs/lblstyle.dot
new file mode 100644
index 0000000000..2215b7abc0
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/lblstyle.dot
@@ -0,0 +1,11 @@
+digraph G {
+ node [shape=circle];
+ a -> b [label="label",lblstyle="draw=red,cross out"];
+ b -> c [label="test",lblstyle="below=0.5cm,rotate=20,fill=blue!20"];
+ a [label="aa",lblstyle="blue"];
+ b [lblstyle="font=\Huge"];
+ c [label="ccc", lblstyle="red,rotate=90"];
+ rankdir=LR;
+ label="Graph label";
+ lblstyle="draw,fill=red!20";
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/nodesize.dot b/graphics/dot2tex/doc/docgraphs/nodesize.dot
new file mode 100644
index 0000000000..96c5ca5de9
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/nodesize.dot
@@ -0,0 +1,7 @@
+digraph G {
+ node [shape=rectangle];
+ a_1 [margin="0"]; // will have no effect
+ a_2 [margin="0.7,0.4"];
+ a_3 [width="2",height="1"];
+ a_1-> a_2 -> a_3 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/pgfarrows.dot b/graphics/dot2tex/doc/docgraphs/pgfarrows.dot
new file mode 100644
index 0000000000..eec85a0c87
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/pgfarrows.dot
@@ -0,0 +1,18 @@
+// Examples of PGF/TikZ style arrows. See chapter 14.1 in the PGF/TikZ manual
+// for all availale arrow styles.
+// To generate this graph you can write:
+// $ circo -Txdot pgfarrows.dot | dot2tex.py > pgfarrows.tex
+digraph G {
+ graph [mindist=0.5];
+ node [texmode="math", fixedsize=true, shape=circle, width=0.4, style="fill=green!20"];
+ c -> n_1 [style="-stealth"];
+ c -> n_2 [style="-to"];
+ c -> n_3 [style="-latex"];
+ c -> n_4 [style="-diamond"];
+ c -> n_5 [style="-o"];
+ c -> n_6 [style="{-]}"];
+ c -> n_7 [style="-triangle 90"];
+ c -> n_8 [style="-hooks"];
+ c -> n_9 [style="->>"];
+ c [style="fill=red!80"];
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/preproc1.dot b/graphics/dot2tex/doc/docgraphs/preproc1.dot
new file mode 100644
index 0000000000..9bf7edf33a
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/preproc1.dot
@@ -0,0 +1,6 @@
+digraph G {
+ node [shape=circle];
+ a_1 [texlbl="$x^2+\frac{\sin y}{y^2+\cos \beta}+\gamma_3$"];
+ a_1 -> a_2 [label=" ", texlbl="$x_1+x_3^2+z+c+v~~$"];
+ a_2 -> a_1;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/pstarrows.dot b/graphics/dot2tex/doc/docgraphs/pstarrows.dot
new file mode 100644
index 0000000000..03e592ef8f
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/pstarrows.dot
@@ -0,0 +1,15 @@
+// Examples of Pstricks style arrows.
+// To generate this graph you can write:
+// $ circo -Txdot pstarrows.dot | dot2tex.py -fpst > pstarrows.tex
+digraph G {
+ d2tdocpreamble="\usepackage{pstricks-add}";
+ graph [mindist=0.5];
+ node [texmode="math", fixedsize=true, shape=circle, width=0.4];
+ c -> n_1 [style="arrows=->"];
+ c -> n_2 [style="arrows=->>"];
+ c -> n_3 [style="arrows=-<"];
+ c -> n_4 [style="arrows=-*"];
+ c -> n_5 [style="arrows=-{]}"];
+ c -> n_6 [style="arrows=-o"];
+ c -> n_7 [style="arrows=-H"];
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/simple.dot b/graphics/dot2tex/doc/docgraphs/simple.dot
new file mode 100644
index 0000000000..a16a7cf61a
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/simple.dot
@@ -0,0 +1,5 @@
+graph G {
+ mindist = 0.5;
+ node [shape="circle"];
+ a -- b -- c -- a;
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/simplelbl.dot b/graphics/dot2tex/doc/docgraphs/simplelbl.dot
new file mode 100644
index 0000000000..c424a3e2c4
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/simplelbl.dot
@@ -0,0 +1,9 @@
+graph G {
+ mindist = 0.5;
+ node [shape="circle"];
+ d2tfigpreamble = "\tikzstyle{mystyle}=[fill=blue!20]";
+ edge [lblstyle="mystyle"];
+ a -- b [label="ab"];
+ b -- c [label="bc"];
+ c -- a [label="ca"];
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/topaths1.dot b/graphics/dot2tex/doc/docgraphs/topaths1.dot
new file mode 100644
index 0000000000..7fc64c5db8
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/topaths1.dot
@@ -0,0 +1,8 @@
+digraph G {
+ mindist = 0.5;
+ node [shape="circle"];
+ a -> b [topath="bend right"];
+ c -> b [topath="bend left"];
+ c -> a [topath="out=10,in=-90"];
+ b -> b [topath="loop above"];
+} \ No newline at end of file
diff --git a/graphics/dot2tex/doc/docgraphs/valignmode1.dot b/graphics/dot2tex/doc/docgraphs/valignmode1.dot
new file mode 100644
index 0000000000..ad18b9fcd1
--- /dev/null
+++ b/graphics/dot2tex/doc/docgraphs/valignmode1.dot
@@ -0,0 +1,7 @@
+digraph G {
+ node [fontsize=10];
+ node0 [label="{left|right}", shape=record];
+ node1 [shape=rectangle, label="node 1"];
+ node0 -> node1;
+ rankdir=LR;
+} \ No newline at end of file