Changed implementation to use TreeSet so that the values are properly sorted.
Need to add ability to color and style the edges, and to style the node shapes.