igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] slow plotting (igraph 0.6.5-2, MacOS)


From: P S Das
Subject: Re: [igraph] slow plotting (igraph 0.6.5-2, MacOS)
Date: Thu, 4 Jul 2013 14:39:52 +0530

Dear All
Suddenly im finding a silly error in igraph

g <- graph( c(0,1, 1,2, 3,4, 5,6) )

Error in graph(c(0, 1, 1, 2, 3, 4, 5, 6)) : 
  At structure_generators.c:84 : Invalid (negative) vertex id, Invalid vertex id

but if i put
 g <- graph( c(1,2, 3,4, 5,6) )
> g
IGRAPH D--- 6 3 --
doesnot give any error
so far i know the vertices in igraph starts from 0. 
I am using R version 2.15.3 and i graph version  0.6.5-2 

Regards,
Partha Sarathi Das

RA,
Bioinformatics Infrastructure Facility,
Vidyasagar University,
Midnapore, India

Mobile : +91 98 31 32 32 32


On Wed, Jul 3, 2013 at 12:25 AM, Baptiste Coulmont <address@hidden> wrote:
pdf("plot.pdf") is indeed much faster : 0.158 seconds.
My problem wasn't linked to igraph, but to quartz()

Thanks
B. Coulmont
 
. .
Baptiste Coulmont
address@hidden
--------

From: Gábor Csárdi <address@hidden>
To: Baptiste Coulmont <address@hidden>; Help for igraph users <address@hidden>
Sent: Tuesday, July 2, 2013 3:12 PM
Subject: Re: [igraph] slow plotting (igraph 0.6.5-2, MacOS)

Hi, 

are you sure, this is igraph? 

Can you try 1) plotting to a PDF device instead of quartz() or x11() which take a long time to start, and also 2) plotting something else instead of an igraph graph, of comparable size, e.g. 100 circles and 100 segments? 

Thanks,
Gabor


On Tue, Jul 2, 2013 at 8:33 AM, Baptiste Coulmont <address@hidden> wrote:
Hi

I see that plot.igraph is much slower now than before 
It seems that only MacOS is affected (plotting is much faster on Windows)

I need 18 seconds with the code below [R 3.0.1, MacOS 10.8.4, 2011 MacAir]
library(igraph)
r=erdos.renyi.game(100,p=0.1)
system.time(plot.igraph(r,layout=layout.circle))
 
Best regards,
B. Coulmont
. .
Baptiste Coulmont
address@hidden
--------

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help





_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



reply via email to

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