Is it possible to store a set of graphs (from igraph) in a vector or other data structure?
I am trying to do it like this:
require('igraph')
g1 <- make_tree(10,3)
g2 <- make_tree(30,3)
gs <- c(g1,g2)
as.igraph(gs[1])
but that will not work. I got an error:
Error in UseMethod("as.igraph") :
no applicable method for 'as.igraph' applied to an object of class "list"
source
share