igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Error in read.graph


From: Gábor Csárdi
Subject: Re: [igraph] Error in read.graph
Date: Mon, 6 Jan 2014 09:22:37 -0500

In general you need to send us your igraph, R and platform version, for example the output of sessionInfo(), and also some _complete_ code that reproduces the error. If data is needed to reproduce it, then the data as well.

Gabor


On Mon, Jan 6, 2014 at 3:44 AM, n omranian <address@hidden> wrote:
what shall I tell more ?
before I created a graph and saved it by write.graph, but now I want to read the graph and it gives me this error.





On Monday, January 6, 2014 2:58 AM, Gábor Csárdi <address@hidden> wrote:
This works fine for me, so you'll need to tell us more.

library(igraph)
g <- graph.ring(10)
write.graph(g, file="/tmp/ring.lgl", format="lgl")
g2 <- read.graph(file="/tmp/ring.lgl", format="lgl")
g2
# IGRAPH UN-- 10 10 --
# + attr: name (v/c)
packageVersion("igraph")
# [1] ‘0.6.6’

Gabor

On Sun, Jan 5, 2014 at 4:04 PM, n omranian <address@hidden> wrote:
> Hi,
>
> I have a problem with read.graph function.
> Some times ago I saved a graph in "lgl" format, and now I need to read the
> graph again but I get the following error:
>
> read.graph(file="../graph.txt",format="lgl")
> Error in read.graph.lgl(file, ...) :
>  At foreign.c:393 : Parse error in LGL file, line 1 (syntax error,
> unexpected ALNUM, expecting NEWLINE), Parse error
>
> The function was working before, but I don't know why it is not now!
>
> Also to test it, I created a graph and used write.graph, then I tried
> read.function again and received the same error.
>
> I would really appreciate any help from you, sine if it doesn't work I have
> to repeat a long-term process.
>
> All the best,
> NO

>
> _______________________________________________
> 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]