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 <[email protected]> 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 <[email protected]>
> 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 <[email protected]> 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
> > [email protected]
> > https://lists.nongnu.org/mailman/listinfo/igraph-help
>
> >
>
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to