Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132940 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,3) {};
14
\node (b)[vertex] at (0,1) {};
15
\node (c)[vertex] at (1,0) {};
16
\node (d)[vertex] at (2,0) {};
17
\node (e)[vertex] at (3,0) {};
18
\node (f)[vertex] at (4,1) {};
19
\node (g)[vertex] at (4,3) {};
20
21
\foreach \from/\to/\color in {b/c/black,c/d/red,d/e/blue,e/f/lime}
22
\draw[line width=2pt,\color] (\from) -- (\to);
23
\end{tikzpicture}
24
\end{document}
25
26