93 lines
2.1 KiB
Text
93 lines
2.1 KiB
Text
\documentclass[crop,tikz]{standalone}
|
|
\input{common-headers}
|
|
|
|
\begin{document}
|
|
|
|
\newcommand{\common}{%
|
|
\coordinate (ll) at (-1cm,-1cm);
|
|
\coordinate (ur) at (3cm, 3cm);
|
|
\draw (ll) rectangle (ur);
|
|
\clip (ll)+(0.1cm,0.1cm) rectangle ([shift={(-0.1cm,-0.1cm)}]ur);
|
|
}
|
|
|
|
\begin{tikzpicture}[
|
|
every node/.style={draw, black!30, inner sep=0cm,
|
|
minimum width=10pt, minimum height=10pt},
|
|
cell/.style={black,fill=black},
|
|
neig/.style={black}]
|
|
\common
|
|
|
|
\node (h1) at (0,2) {};
|
|
\node[neig] (h2) at (1,2) {};
|
|
\node (h3) at (2,2) {};
|
|
|
|
\node[neig] (m1) at (0,1) {};
|
|
\node[cell] (m2) at (1,1) {};
|
|
\node[neig] (m3) at (2,1) {};
|
|
|
|
\node (b1) at (0,0) {};
|
|
\node[neig] (b2) at (1,0) {};
|
|
\node (b3) at (2,0) {};
|
|
|
|
\draw (m2) -- (h2);
|
|
\draw (m2) -- (m1);
|
|
\draw (m2) -- (m3);
|
|
\draw (m2) -- (b2);
|
|
\end{tikzpicture}
|
|
|
|
\begin{tikzpicture}[
|
|
every node/.style={draw, black!30, inner sep=0cm,
|
|
minimum width=10pt, minimum height=10pt},
|
|
cell/.style={black,fill=black},
|
|
neig/.style={black}]
|
|
\common
|
|
|
|
\node (h1) at (0,2) {};
|
|
\node[neig] (h2) at (1,2) {};
|
|
\node[neig] (h3) at (2,2) {};
|
|
|
|
\node[neig] (m1) at (0,1) {};
|
|
\node[cell] (m2) at (1,1) {};
|
|
\node[neig] (m3) at (2,1) {};
|
|
|
|
\node[neig] (b1) at (0,0) {};
|
|
\node[neig] (b2) at (1,0) {};
|
|
\node (b3) at (2,0) {};
|
|
|
|
\draw (m2) -- (h2);
|
|
\draw (m2) -- (m1);
|
|
\draw (m2) -- (m3);
|
|
\draw (m2) -- (b2);
|
|
\draw (m2) -- (b1);
|
|
\draw (m2) -- (h3);
|
|
\end{tikzpicture}
|
|
|
|
\begin{tikzpicture}[
|
|
every node/.style={draw, black!30, inner sep=0cm,
|
|
minimum width=10pt, minimum height=10pt},
|
|
cell/.style={black,fill=black},
|
|
neig/.style={black}]
|
|
\common
|
|
|
|
\node[neig] (h1) at (0,2) {};
|
|
\node[neig] (h2) at (1,2) {};
|
|
\node[neig] (h3) at (2,2) {};
|
|
|
|
\node[neig] (m1) at (0,1) {};
|
|
\node[cell] (m2) at (1,1) {};
|
|
\node[neig] (m3) at (2,1) {};
|
|
|
|
\node[neig] (b1) at (0,0) {};
|
|
\node[neig] (b2) at (1,0) {};
|
|
\node[neig] (b3) at (2,0) {};
|
|
|
|
\draw (m2) -- (m1);
|
|
\draw (m2) -- (m3);
|
|
\draw (m2) -- (b1);
|
|
\draw (m2) -- (b2);
|
|
\draw (m2) -- (b3);
|
|
\draw (m2) -- (h1);
|
|
\draw (m2) -- (h2);
|
|
\draw (m2) -- (h3);
|
|
\end{tikzpicture}
|
|
\end{document}
|