Skip to content
Prev 144359 / 398500 Next

For Social Network Analysis-Graph Analysis - How to convert 2 mode data to 1 mode data?

Hi Gabor,

Thank you for your help, and thanks for making the excellent igraph
package.  The function below seems not generate an edge list that works
for my data.  I coerced a my data from a data frame using
graph.data.frame.  

You asked in your previous post if 2-mode networks are bipartite.  I
believe the answer is yes.  However, in 

Hanneman, Robert A. and Mark Riddle.  2005.  Introduction to social
network methods.  Riverside, CA:  University of California, Riverside (
published in digital form at http://faculty.ucr.edu/~hanneman/ )

I found the following: 

"Two-mode data are sometimes stored in a second way, called the
"bipartite" matrix.  A bipartite matrix is formed by adding the rows as
additional columns, and columns as additional rows."

Did I need to convert my data frame to a bipartite matrix before
applying the two.to.one function?

Solomon
convert 2
create an
## drop
## keep
## create
## these
## a
## count
## 'id'
ids.
igraph
am
function
searched
going
a
http://www.R-project.org/posting-guide.html