Hi,

I have a list of the links shared by n points. Each element of the list represents the ID of a point and the entries for each element indicate the ID's of the points that it is linked with. I would like to group points via their ID's based on these links. There are an unknown number of groups and some points do not share any links.

I would be grateful for any assistance in pointing me towards a solution. An example list of 20 points with two links for each point is given below.

links <- list(c(5,3),c(10,16),c(20,1),c(19,8),c(19,1),c(7,11),c(11,13),c(4,13),c(15,20),c(16,2),c(13,7),c(14,16),c(11,8),c(16,12),NULL,NULL,c(12,14),NULL,c(4,5),NULL)

Thanks in advance,

Matthew Cracknell
PhD. Candidate
   
ARC Centre of Excellence in Ore Deposits
University of Tasmania
Private Bag 79
Hobart, 7001
Australia

Mob: 0409438924 



	[[alternative HTML version deleted]]

