I've been using LaTeX since three years, but I've always avoided the Tikz package for drawing. Now I am writing my degree thesis and I'm forced to use it to achieve a better result. The problem is just I don't have time right now to start a deep walkthrough.
I have to draw these simple patterns of graphs: a triangle and a complete bipartite graph (see pictures below). I found the sample code of a simple triangle graph on the web and I tried to rearrange nodes using relative positioning, but the result was not quite good. This is my attempt.
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3cm,
thick,main node/.style={circle,fill=blue!20,draw,minimum size=1cm,inner sep=0pt]}]
\node[main node] (1) {$1$};
\node[main node] (2) [below left of=1] {$2$};
\node[main node] (3) [below right of=1] {$3$};
\path[-]
(1) edge node {} (2)
edge node {} (3)
(2) edge node {} (1)
edge node {} (3)
(3) edge node {} (1)
edge node {} (2);
\end{tikzpicture}
Could you please give me any help to improve this result?
Thank you.