Skip to content

Instantly share code, notes, and snippets.

@abikoushi
Created May 28, 2022 06:00
Show Gist options
  • Save abikoushi/bcb569d492258488dac3bdb05a10aa70 to your computer and use it in GitHub Desktop.
Save abikoushi/bcb569d492258488dac3bdb05a10aa70 to your computer and use it in GitHub Desktop.
TikZ example
\documentclass[dvipdfmx, tikz, margin = 1pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\tikzset{var/.style = {draw, circle}};
\node[var](A){A};
\node[var, below left of = A](B){B};
\node[var, below right of = A](C){C};
\draw[->] (B)--(A);
\draw[->] (C)--(A);
\node[var, below right of = B](A2){A};
\node[var, below left of = A2](B2){B};
\node[var, below right of = A2](C2){C};
\draw[->] (B2)--(A2);
\draw[->] (A2)--(C2);
\draw[->] (C2)--(B2);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment