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.