\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,automata,calc,positioning}
\usetikzlibrary{arrows}

\begin{document}

\begin{tikzpicture}[scale=1,style=thick,x=1cm,y=1cm]
\def\vr{2.5pt}
% define vertices
\path (0,0) coordinate (A1);
\path (0,1) coordinate (B1);
\path (0.05,1.25) coordinate (b1);
\path (0,2) coordinate (C1);
\path (0.05,2.25) coordinate (c1);
\path (0,3) coordinate (D1);
\path (0.05,3.25) coordinate (d1);
\path (0,4) coordinate (E1);
%
\path (1,0) coordinate (A2);
\path (1,1) coordinate (B2);
\path (1.05,1.25) coordinate (b2);
\path (1,2) coordinate (C2);
\path (1.05,2.25) coordinate (c2);
\path (1,3) coordinate (D2);
\path (1.05,3.25) coordinate (d2);
\path (1,4) coordinate (E2);
%
\path (2,0) coordinate (A3);
\path (2,1) coordinate (B3);
\path (2.05,1.25) coordinate (b3);
\path (2,2) coordinate (C3);
\path (2.05,2.25) coordinate (c3);
\path (2,3) coordinate (D3);
\path (2.05,3.25) coordinate (d3);
\path (2,4) coordinate (E3);
%
\path (3,0) coordinate (A4);
\path (3,1) coordinate (B4);
\path (3.05,1.25) coordinate (b4);
\path (3,2) coordinate (C4);
\path (3.05,2.25) coordinate (c4);
\path (3,3) coordinate (D4);
\path (3.05,3.25) coordinate (d4);
\path (3,4) coordinate (E4);
%
\path (4,0) coordinate (A5);
\path (4,1) coordinate (B5);
\path (4.05,1.25) coordinate (b5);
\path (4,2) coordinate (C5);
\path (4.05,2.25) coordinate (c5);
\path (4,3) coordinate (D5);
\path (4.05,3.25) coordinate (d5);
\path (4,4) coordinate (E5);
%
\path (5,0) coordinate (A6);
\path (5,1) coordinate (B6);
\path (5.05,1.25) coordinate (b6);
\path (5,2) coordinate (C6);
\path (5.05,2.25) coordinate (c6);
\path (5,3) coordinate (D6);
\path (5.05,3.25) coordinate (d6);
\path (5,4) coordinate (E6);
%
\path (6,0) coordinate (A7);
\path (6,1) coordinate (B7);
\path (6.05,1.25) coordinate (b7);
\path (6,2) coordinate (C7);
\path (6.05,2.25) coordinate (c7);
\path (6,3) coordinate (D7);
\path (6.05,3.25) coordinate (d7);
\path (6,4) coordinate (E7);
%  edges
\draw (A1)--(B1)--(C1)--(D1)--(E1);
\draw (A2)--(B2)--(C2)--(D2)--(E2);
\draw (A3)--(B3)--(C3)--(D3)--(E3);
\draw (A4)--(B4)--(C4)--(D4)--(E4);
\draw (A5)--(B5)--(C5)--(D5)--(E5);
\draw (A6)--(B6)--(C6)--(D6)--(E6);
\draw (A7)--(B7)--(C7)--(D7)--(E7);
\draw (A1)--(A2)--(A3)--(A4)--(A5)--(A6)--(A7);
\draw (B1)--(B2)--(B3)--(B4)--(B5)--(B6)--(B7);
\draw (C1)--(C2)--(C3)--(C4)--(C5)--(C6)--(C7);
\draw (D1)--(D2)--(D3)--(D4)--(D5)--(D6)--(D7);
\draw (E1)--(E2)--(E3)--(E4)--(E5)--(E6)--(E7);
% vertices
\draw (A1) [fill=black] circle (\vr);
\draw (B1) [fill=white] circle (\vr);
\draw (C1) [fill=black] circle (\vr);
\draw (D1) [fill=white] circle (\vr);
\draw (E1) [fill=black] circle (\vr);
%
\draw (A2) [fill=white] circle (\vr);
\draw (B2) [fill=black] circle (\vr);
\draw (C2) [fill=white] circle (\vr);
\draw (D2) [fill=black] circle (\vr);
\draw (E2) [fill=white] circle (\vr);
%
\draw (A3) [fill=black] circle (\vr);
\draw (B3) [fill=white] circle (\vr);
\draw (C3) [fill=white] circle (\vr);
\draw (D3) [fill=white] circle (\vr);
\draw (E3) [fill=black] circle (\vr);
%
\draw (A4) [fill=white] circle (\vr);
\draw (B4) [fill=black] circle (\vr);
\draw (C4) [fill=white] circle (\vr);
\draw (D4) [fill=black] circle (\vr);
\draw (E4) [fill=white] circle (\vr);
%
\draw (A5) [fill=black] circle (\vr);
\draw (B5) [fill=white] circle (\vr);
\draw (C5) [fill=white] circle (\vr);
\draw (D5) [fill=white] circle (\vr);
\draw (E5) [fill=black] circle (\vr);
%
\draw (A6) [fill=white] circle (\vr);
\draw (B6) [fill=black] circle (\vr);
\draw (C6) [fill=white] circle (\vr);
\draw (D6) [fill=black] circle (\vr);
\draw (E6) [fill=white] circle (\vr);
%
\draw (A7) [fill=black] circle (\vr);
\draw (B7) [fill=white] circle (\vr);
\draw (C7) [fill=black] circle (\vr);
\draw (D7) [fill=white] circle (\vr);
\draw (E7) [fill=black] circle (\vr);
% text
\draw[anchor = north] (A1) node {$a_1$};
\draw[anchor = east] (b1) node {$b_1$};
\draw[anchor = east] (c1) node {$c_1$};
\draw[anchor = east] (d1) node {$d_1$};
\draw[anchor = south] (E1) node {$e_1$};
%
\draw[anchor = north] (A2) node {$a_2$};
\draw[anchor = east] (b2) node {$b_2$};
\draw[anchor = east] (c2) node {$c_2$};
\draw[anchor = east] (d2) node {$d_2$};
\draw[anchor = south] (E2) node {$e_2$};
%
\draw[anchor = north] (A3) node {$a_3$};
\draw[anchor = east] (b3) node {$b_3$};
\draw[anchor = east] (c3) node {$c_3$};
\draw[anchor = east] (d3) node {$d_3$};
\draw[anchor = south] (E3) node {$e_3$};
%
\draw[anchor = north] (A4) node {$a_4$};
\draw[anchor = east] (b4) node {$b_4$};
\draw[anchor = east] (c4) node {$c_4$};
\draw[anchor = east] (d4) node {$d_4$};
\draw[anchor = south] (E4) node {$e_4$};
%
\draw[anchor = north] (A5) node {$a_5$};
\draw[anchor = east] (b5) node {$b_5$};
\draw[anchor = east] (c5) node {$c_5$};
\draw[anchor = east] (d5) node {$d_5$};
\draw[anchor = south] (E5) node {$e_5$};
%
\draw[anchor = north] (A6) node {$a_6$};
\draw[anchor = east] (b6) node {$b_6$};
\draw[anchor = east] (c6) node {$c_6$};
\draw[anchor = east] (d6) node {$d_6$};
\draw[anchor = south] (E6) node {$e_6$};
%
\draw[anchor = north] (A7) node {$a_7$};
\draw[anchor = east] (b7) node {$b_7$};
\draw[anchor = east] (c7) node {$c_7$};
\draw[anchor = east] (d7) node {$d_7$};
\draw[anchor = south] (E7) node {$e_7$};
%
\end{tikzpicture}

\end{document}