<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper]{article}
\usepackage{pstricks}
\usepackage{pstricks-add}

\usepackage[pstricks]{dot2texi}

\begin{document}

\begin{dot2tex}[mathmode,autosize]
digraph G{
    d2toptions="--nominsize";
    a -&gt; b;
    a -&gt; c;
    b -&gt; d;
    d -&gt; a;
}
\end{dot2tex}

\begin{dot2tex}[dot]
graph G {
  node [shape=circle];
	1 -- 2;
	1 -- 5;
	2 -- 5;
	2 -- 4;
	2 -- 3;
	3 -- 4;
}
\end{dot2tex}

\begin{dot2tex}[circo]
digraph G {
    graph [mindist=0.5];
    node [texmode="math", fixedsize=true, shape=circle, width=0.4];
    c -&gt; n_1 [style="arrows=-&gt;"];
    c -&gt; n_2 [style="arrows=-&gt;&gt;"];
    c -&gt; n_3 [style="arrows=-&lt;"];
    c -&gt; n_4 [style="arrows=-*"];
    c -&gt; n_5 [style="arrows=-{]}"];
    c -&gt; n_6 [style="arrows=-o"];
    c -&gt; n_7 [style="arrows=-H"];
}
\end{dot2tex}
\end{document}
</pre></body></html>