[Top][All Lists]

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

Re: [igraph] Error in read.graph

From: n omranian
Subject: Re: [igraph] Error in read.graph
Date: Mon, 6 Jan 2014 00:44:41 -0800 (PST)

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.

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


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]