If I have a set of nodes with ids and pointers to other nodes like this:
1 -> 2
2 -> 4
2 -> 3
3 -> 4
5 -> 1
...
How can I display this graph in 2 dimensions (on an x-y plane)? Is there a way to project these 1d points into 2d? I'm looking looking for someone to point me to an algorithm that I can use.
Thanks in advance.