Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132941 views
License: OTHER
1
\documentclass[varwidth=true, border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{arrows,positioning}
4
5
\begin{document}
6
\tikzstyle{vertexs}=[draw,fill=black,circle,minimum size=4pt,inner sep=0pt]
7
8
\begin{tikzpicture}
9
\foreach \x in {0,1}
10
\foreach \y in {0,1}{
11
\node (a)[vertexs] at (\y,0) {};
12
\node (b)[vertexs] at (\x,1) {};
13
\draw (a) -- (b);
14
}
15
\end{tikzpicture}
16
\end{document}
17
18