Oh, I think I know what is happening, probably igraph PROTECTs all components of the graph, before returning them, and the stack of the protected elements gets full.
A workaround is to use clusters() to get the clusters and then create the subgraphs that you need manually. Gabor On Tue, Mar 20, 2012 at 10:23 PM, Gábor Csárdi <[email protected]> wrote: > What is 'gr'? How did you create it? > > Gabor > > On Tue, Mar 20, 2012 at 9:29 PM, Sam Steingold <[email protected]> wrote: >>> * Sam Steingold <[email protected]> [2012-03-20 14:20:06 -0400]: >>> >>> I just got this error: >>>> library(igraph) >>>> comp <- decompose.graph(gr) >>> Error: protect(): protection stack overflow >>> Error: protect(): protection stack overflow >>>> >> >> after restarting >> >>> system.time(comp <- decompose.graph(gr, mode="weak")) >> Error: protect(): protection stack overflow >> Error: protect(): protection stack overflow >> Error: protect(): protection stack overflow >>> system.time(comp <- decompose.graph(gr, mode="strong")) >> >> *** caught segfault *** >> address 0xd8, cause 'memory not mapped' >> >> Traceback: >> 1: decompose.graph(sc.gr, mode = "strong") >> 2: system.time(sc.comp <- decompose.graph(sc.gr, mode = "strong")) >> >> Possible actions: >> 1: abort (with core dump, if enabled) >> 2: normal R exit >> 3: exit R without saving workspace >> 4: exit R saving workspace >> Selection: 3 >> >> -- >> Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X >> 11.0.11004000 >> http://www.childpsy.net/ http://openvotingconsortium.org >> http://www.memritv.org >> http://pmw.org.il http://www.PetitionOnline.com/tap12009/ >> What's the difference between Apathy & Ignorance? -I don't know and don't >> care! >> >> _______________________________________________ >> igraph-help mailing list >> [email protected] >> https://lists.nongnu.org/mailman/listinfo/igraph-help > > > > -- > Gabor Csardi <[email protected]> MTA KFKI RMKI -- Gabor Csardi <[email protected]> MTA KFKI RMKI _______________________________________________ igraph-help mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/igraph-help
