I saw that igraph in R requires data structured like this:
nodeA nodeB int_1 int_2
AA BD 6 X
BD CA 8 Y
AA DE 7 Y
... ... ... ...
And I saw that through
data<-read.table(file)
graph.data.frame(data)
I obtain the corresponding network.
Now say I have to put in isolated nodes, I searched in the documentation but could not find anything that answered my issue.
How can I specify them in the original file?
I thought of something like (like a .sif format)
nodeA nodeB int_1 int_2
AA DE 7 Y
... ... ... ...
isoNodeA
isoNodeB
...
but obviously the read.table does not accept different number of fields between rows.