Drawing a graph

We need to draw a graph with 1000+ vertices and draw it on the canvas. There is an algorithm link text

I need help implementing it. The vertices of the graph are defined by edges:

1 2
1 3
18
2 1
2 3
25
3 1
3 2
3 5
38
46
48
5 2
5 3
5 6
6 4
6 5
8 1
8 3
8 4


Answer 1, authority 100%

For the image of graphs, networks, their beautiful wiring
The yWorkslibrary is fine.
There are implementations for Java and .NET.

The library is paid, but a 30-day trial version is also suitable for educational purposes.