[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] quick way to load bipartite graphs
From: |
Simone Gabbriellini |
Subject: |
[igraph] quick way to load bipartite graphs |
Date: |
Thu, 31 Jan 2013 11:32:25 +0100 |
Dear List,
I have a bunch of files where info about bipartite networks are coded this way:
"topic","user","weight"
696,2,1
696,9,2
696,17,1
696,137,1
698,9,3
698,17,3
717,3,1
717,5,1
717,8,1
717,9,8
is there any straightforward way to load one of this files and create
a bipartite network with edge weights? Consider that there could be an
overlap between numbers in the first and second column.
Right now, I only have this code:
net<-as.matrix(read.csv("my file"))
g<-graph.edgelist(net[,-3])
Any help much appreciated.
Best,
Simone
--
Simone Gabbriellini, PhD
address@hidden, University of Bologna
mobile: +39 340 39 75 626
email: address@hidden
home: www.digitaldust.it
DigitalBrains srl
Amministratore
mobile: +39 340 39 75 626
email: address@hidden
home: www.digitalbrains.it
- [igraph] quick way to load bipartite graphs,
Simone Gabbriellini <=