Finding Connected components



I am trying to find out connected components in a two
dimensional set of points. When I do a scatter plot, there
seems to be a few lines which can be seen visually. I need a
method to separate the points into individual sets that
constitute a line in the graph.

Thnx
.