[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] How to write graphs in the list to edgelist
From: |
Chang Jin Shin |
Subject: |
[igraph] How to write graphs in the list to edgelist |
Date: |
Sun, 22 Mar 2009 15:19:42 +1000 |
Hi!
I generated random graphs then put these into the list.
I want to save(write) element of this list to text file.
Would you advise me?
====================================================
all <- read.graph("all.net", format="pajek")
p <- degree(all)
graphs <- list()
for (j in 1:100) {
graphs[[ j ]] <- degree.sequence.game(p, method="vl")
}
**** Until this line code works well.
--------------------------------------------------------
**** From here it doesn't work.
for (i in 1:100){
write.graph(graphs[[i]], "i.txt", "edgelist")
}
====================================================
With regards,
- [igraph] How to write graphs in the list to edgelist,
Chang Jin Shin <=