Hi, create a bipartite graph from this edge list (with graph.data.frame probably) and then call bipartite.projection() to project it on the objects. Please let us know if you need more help.
Gabor On Thu, Nov 6, 2014 at 2:58 PM, Farhan Ahmed <[email protected]> wrote: > Hello there, > > I have a data frame with the following structure - > > session object > 1 A > 1 B > 1 C > 2 A > 2 D > 3 B > 3 C > 3 E > > > I want to create a graph where there's a bi-directional edge between objects > that appear in the same session. So in the example above, there'd be an edge > between A and B, B and C, A and C, A and D, B and C, B and E and C and E. > > Is there an easy way to do this using igraph? > > Thanks! > > Farhan > > _______________________________________________ > 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
