I started using Tikz, took a sample of a code and tried to do my own. I'm almost there but I'm struggling on a couple of things.
First, here is my code:
\documentclass{article}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.5cm,
thick,main node/.style={rectangle,draw,font=\sffamily\Large\bfseries}]
\node[main node] (1) {1};
\node[main node] (2) [below of=1] {2};
\node[main node] (3) [below of=2] {3};
\node[main node] (4) [right of=1] {$\varnothing$};
\node[main node] (5) [right of=2] {$\varnothing$};
\node[main node] (6) [right of=3] {$\varnothing$};
\path[every node/.style={font=\sffamily\small}]
(1) edge node [left] {$p_1$} (2)
edge node [above] {$1-p_1$} (4)
(2) edge node [left] {$p_2$} (3)
edge node [above] {$1-p_2$} (5)
(3) edge [bend left] node [left] {$p_3$} (1)
edge node [above] {$1-p_3$} (6);
\end{tikzpicture}
\end{document}

What I would like to change is:
1/ get rid of the rectangle on the empty set nodes
2/ the arrow with p3 on, make it rectangular. Is it possible to adjust how far away it goes on the left to ensure it doesn't clash with something else?
3/ change the distance between the number 1, 2, 3 with the empty set nodes. So basically, expand it to the right.
If anyone could explain me how to change any/all of them, that'll be great!
Cheers




Something elsenode is a nice bonus I can learn from and makes it easier to understand how it works. – user88595 Apr 23 '14 at 23:17tikzmanual itself seems a less than perfectly reliable source of information on this. See, for example, page 237 where the code includesabove right of=andbelow right of=. I'm not sure what the disadvantages of using this syntax are (other than its being 'obsolete') but it would be nice if the documentation at least declared its own examples null and void if that's what they are :(. I think I've learnt the new syntax but I certainly didn't know to 'update' the syntax in the OP's MWE. – cfr Apr 23 '14 at 23:32tikzset?] I have read that. I think that's why I use the new syntax (except when I've got a working example right above as in this case). – cfr Apr 23 '14 at 23:46texdoc tikz, I get the manual. Mine is 1,165 pages long! But it is indeed by Till Tantau. Mine is for version 3.0.0. – cfr Apr 23 '14 at 23:47\tikzsetshould be preferred totikzstylerather than the other way around? – cfr May 03 '14 at 14:06tikzsetrather thantikzstyle. – Claudio Fiandrino May 05 '14 at 07:01