[Tex/LaTex] TikZ – Remove space around nodes

tikz-pgf

I'm relatively new to TikZ and I drew the following graph. However, there is some space around the filled black node. Is there a way to have the lines actually connecting with the node?

EDIT: I'm not sure why it doesn't compile and show the graph in here? Maybe someone could please help me with this?

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\node (1) at (0.4, 2.2) [circle,draw] {1};
\node (4) at (0.4, 0.6) [circle,draw] {4};
\node (3) at (2.6, 0.6) [circle,draw] {3};
\node (7) at (1.5,1.5) {};
\node (2) at (2.6, 2.2) [circle,draw] {2};

\fill (7) circle (2.5pt);

\draw[-] (1) to (7);
\draw[-] (4) to (7);
\draw[-] (3) to (7);
\draw[-] (2) to (7);

\end{tikzpicture}
\end{document}

enter image description here

Best Answer

You can control the space added with the inner sep key:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\node (1) at (0.4, 2.2) [circle,draw] {1};
\node (4) at (0.4, 0.6) [circle,draw] {4};
\node (3) at (2.6, 0.6) [circle,draw] {3};
\node[inner sep=0pt] (7) at (1.5,1.5) {};
\node (2) at (2.6, 2.2) [circle,draw] {2};

\fill (7) circle (2.5pt);

\draw[-] (1) to (7);
\draw[-] (4) to (7);
\draw[-] (3) to (7);
\draw[-] (2) to (7);

\end{tikzpicture}
\end{document}

enter image description here