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,2}
10
\foreach \y in {0,1,2}{
11
\node (a)[vertexs] at (\y,0) {};
12
\node (b)[vertexs] at (\x,1) {};
13
\draw (a) -- (b);
14
}
15
\draw[green,ultra thick] (1,1) -- (0,0);
16
\node (b)[vertexs,red] at (1,1) {};
17
\node (b)[vertexs,red] at (0,0) {};
18
\end{tikzpicture}
19
\end{document}
20
21