Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132939 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{arrows,positioning}
4
\tikzset{
5
%Define standard arrow tip
6
>=stealth',
7
% Define arrow style
8
pil/.style={->,thick}
9
}
10
11
\begin{document}
12
\begin{tikzpicture}
13
\node (a)[vertex] at (0,8) {$a$};
14
\node (b)[vertex] at (0,4) {$b$};
15
\node (c)[vertex] at (0,0) {$c$};
16
\node (d)[vertex] at (4,4) {$d$};
17
18
\foreach \from/\to/\pos in {a/b/20,a/b/-20,a/d/0,b/c/20,b/c/-20,b/d/0,c/d/0}
19
\draw[line width=2pt] (\from) to [bend left=\pos] (\to);
20
\end{tikzpicture}
21
\end{document}
22
23