New distance algorithm + node info flowTo

I put the nodes further to the right on the x-axis depending on the
distance. Cleaned up the code a bit, and the new flowTo info about
nodes, which prevents several arrows going back and forth between the
same nodes.
New distance algorithm + node info flowTo

I put the nodes further to the right on the x-axis depending on the
distance. Cleaned up the code a bit, and the new flowTo info about
nodes, which prevents several arrows going back and forth between the
same nodes.
Tikz code revamped. Uses the new layer algorithm to calculate xy-coords and I have added some of the cases for the arrows that are to be made so that they are nicely rounded
Tikz code revamped. Uses the new layer algorithm to calculate xy-coords and I have added some of the cases for the arrows that are to be made so that they are nicely rounded
added test2
Merge pull request #3 from johanasplund/master

New tikz code + used the new layers and djikstra alg to determine node position better