igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Graphs List


From: Gábor Csárdi
Subject: Re: [igraph] Graphs List
Date: Wed, 21 Oct 2009 11:15:04 +0200

Romildo,

there is nothing special about igraph graph objects in this respect,
just put them into a list, e.g.

glist <- list(g1, g2, g3)

or, another example, generating small world graphs with different
rewiring probabilities and calculating their transitivity:

p <- seq(0,1,length=20)
sw <- lapply(p, watts.strogatz.game, dim=1, nei=3, size=100)
sapply(sw, transitivity)

Best,
Gabor

On Tue, Oct 20, 2009 at 5:37 PM, Romildo Martins
<address@hidden> wrote:
> Hello,
>
> How make a list os graph?
> Example:
>
>
> graphlist
> [[1]]
> [1] <- subgraph(mynet01,array(subdomainslist[[1]]) )
>
> [[1]]
> [2] <- subgraph(mynet01,array(subdomainslist[[1]]) )
>
>
> [[2]]
> [1] <- subgraph(mynet02,array(subdomainslist[[1]]) )
>
> [[2]]
> [2] <- subgraph(mynet02,array(subdomainslist[[1]]) )
>
>
> Thanks a lot!
>
> Romildo
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]