igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] trouble with read.graph on Mac


From: MATSUDA, Noriyuki
Subject: Re: [igraph] trouble with read.graph on Mac
Date: Mon, 9 Jul 2007 19:25:09 +0900

Hello:

   Here's the result of what you suggested below:
     > lines <- scan("ELX-context.gml", what=character(0))
       Read 2382 items
     > g <- graph.ring(10)
     > write.graph(g, file="test.gml", format="gml")
     > g2 <- read.graph("test.gml", format="gml")

  I have attached the the gml file which is also available at
     http://www.sk.tsukuba.ac.jp/~mazda/dA/ELX-context.gml

Thank you.
At 11:43 AM +0200 07.7.9, Gabor Csardi wrote:
Can you read the file via other R methods?
Eg. can you run

lines <- scan("ELX-context.gml", what=character(0))

If yes then could you please try it for other graphs as well?
The easiest to try would be

g <- graph.ring(10)
write.graph(g, file="test.gml", format="gml")
g2 <- read.graph("test.gml", format="gml")

If this works for you then could you please send me the graph you want to
read, or at least a minimal example graph which does not work
for you.

Thanks,
Gabor

On Mon, Jul 09, 2007 at 05:42:43PM +0900, MATSUDA, Noriyuki wrote:
 Hello:

    I encountered an error in read.graph on Mac
     > read.graph("ELX-context.gml",format="gml")
       Error in read.graph.gml(file, ...) : At rinterface.c:3380 :
 Cannot read GML file, File operation error

   The "ELX-context.gml" was created on a Window machine by my assistant and
 sent to me by email-attachment.  It was successfully imported into
 Cytoscape.
 --
 MATSUDA, Noriyuki


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

--
Csardi Gabor <address@hidden>    MTA RMKI, ELTE TTK


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

Attachment: ELX-context.gml
Description: application/applefile


reply via email to

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