|
From: | Tamás Nepusz |
Subject: | Re: [igraph] how to "collapse" a network |
Date: | Tue, 6 Mar 2012 10:36:54 +0100 |
It happens frequently that the same companies engage in multiple dealstogether, but each deal is represented by a line in my data. As aresult, you see that 'COMP 1' -- 'COMP 2' occurs twice.I would like to be able to collapse this to a weighted edge list where'COMP 1' -- 'COMP 2' occurs only once but with value 2, 'COMP 1' --'COMP 3' occurs only once having value 3, et cetera.There must be a very simple way of doing this, but how?
Second, each company has several attributes, including industry. One ofthe things I would like to do is to collapse the entirecompany*company network into a weigted industry*industry network. Thiswould reduce the network from approx. 2000*2000 to 40*40.How can I construct such a weighted network in igraph?
[Prev in Thread] | Current Thread | [Next in Thread] |