As title states, I simply want my TikZ picture to be placed next to my table.
I don't mind whether the captions are separate or together.
Below is my code.
\begin{figure}[h]
\centering
\begin{tikzpicture}[scale=0.9]
\begin{pgfonlayer}{nodelayer}
\node [style=station] (0) at (-2, 3) [label=left:E] {};
\node [style=station] (1) at (2, 3) [label=right:B]{};
\node [style=station] (2) at (-1.25, 0.75)[label=left:D] {};
\node [style=station] (3) at (1.25, 0.75) [label=right:C]{};
\node [style=station] (4) at (0, 4.5) [label=above: A]{};
\end{pgfonlayer}
\begin{pgfonlayer}{edgelayer}
\draw [style=edge] (0) to (4);
\draw [style=edge] (4) to (1);
\draw [style=edge] (1) to (3);
\draw [style=edge] (0) to (2);
\draw [style=edge] (3) to (2);
\draw [style=edge] (2) to (4);
\draw [style=edge] (4) to (3);
\draw [style=edge] (0) to (1);
\draw [style=edge] (0) to (3);
\draw [style=edge] (2) to (1);
\end{pgfonlayer}
\end{tikzpicture}
\caption{Weighted, complete graph $K_H$}
\end{figure}
\begin{table}[h]
\centering
\renewcommand{\arraystretch}{1.3}
\begin{tabular}{c|ccccc}
& A & B & C & D & E \\
\hline
A & -- & 4 & 7 & 6 & 12 \\
B & 4 & -- & 3 & 5 & 8 \\
C & 7 & 3 & -- & 2 & 5 \\
D & 6 & 5 & 2 & -- & 9 \\
E & 12 & 8 & 5 & 9 & --
\end{tabular}
\caption{Weights of edges in graph $K_H$}
\end{table}

subfigurefrom thesubcaptionpakage, like in this question. – Kpym Mar 31 '18 at 08:16