Read the file with readLines(), and then go over it line by line. Split each line with strsplit(), and put the whole thing into an adjacency list. Then call graph.adjlist() on it.
Gabor On Sat, May 10, 2014 at 6:33 PM, Ragia Ibrahim <[email protected]> wrote: > > Hi, > I got data like the following taken from a graph > > id reacableh_list number of reachable > --------------------------------------------------- > 1 1 4 2 > 2 2 3 4 3 > 3 3 2 1 3 > 4 4 1 > ---------------------------------------------------------- > > > i couldn't put it in data frame since the reachable list is not the same? > i want to keep it ..be able to sort..and get intersection and union > between reachable lists.. > any suggestions please > > > > > Ragia. > > _______________________________________________ > igraph-help mailing list > [email protected] > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
