I have a large data which is composed of one million lines, which makes up a bipartite network. One side of the network represents the APP, the other side represents the IP.
The data format is :
1 1.1.1.1
1 1.2.1.1
2 1.1.1.1
1 1.3.1.1
2 1.2.1.1
What I would like to do is to write something by igraph
(python interface) to project the data to one side. For instance
1.1.1.1 1.2.1.1 the weight = 2
1.1.2.1 1.3.1.1 the weight = 1
the weight represents 1.1.1.1
node shares one common APP (1) and common APP(2) with 1.2.1.1
And I want to save the weight in a file with the format of txt
I am a bit confused how to handle this with igraph
.
Can igraph
handle this problem?
Thanks