Try this:

> DF
   V1 V2
1   1  2
2   1  3
3   1  4
4   1  5
5   2  3
6   2  4
7   3  2
8   4  1
9   4  3
10  4  5
11  5  2
12  5  4

> aggregate(V2 ~ V1, DF, paste, collapse = ' ')
  V1      V2
1  1 2 3 4 5
2  2     3 4
3  3       2
4  4   1 3 5
5  5     2 4

On Fri, Dec 10, 2010 at 1:20 PM, profaar <profaar@live.com> wrote:

>
> HI friends,
>  I have very lengthy graph data in edge list format. I want to convert it
> into node list format.
>
> example:
> EDGE LIST FORMAT
> 1 2
> 1 3
> 1 4
> 1 5
> 2 3
> 2 4
> 3 2
> 4 1
> 4 3
> 4  5
> 5 2
> 5 4
>
> ITS NODE LIST FORMAT SHOULD BE LIKE:
> 1 2 3  4 5
> 2 3 4
> 3 2
> 4 1 3
> 5 2 4
>
>  Kindly suggest me which package in R provides the support to do my task.
> Thank u friends in advance.
> --
> View this message in context:
> http://r.789695.n4.nabble.com/help-requested-tp3082147p3082147.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

	[[alternative HTML version deleted]]

