[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Creating graph from session data
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Creating graph from session data |
Date: |
Sat, 15 Nov 2014 11:29:03 -0500 |
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 <address@hidden> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>