[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] DL graph.read Error Msg
From: |
Jannick |
Subject: |
Re: [igraph] DL graph.read Error Msg |
Date: |
Sat, 5 Mar 2016 12:52:59 +0100 |
Attached a patch re the parser .y for your consideration (incl. a suggestion
for the corresponding lexer .l)
Best,
J.
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Tamas Nepusz
Sent: Thursday, March 3, 2016 9:46 AM
To: Help for igraph users <address@hidden>
Subject: Re: [igraph] DL graph.read Error Msg
Most likely the last line of the file does not have a newline character at
the end. I'm not sure whether this is a bug (i.e. what the DL format
specification says about trailing newlines), but you can fix the issue by
adding a newline to the end of the file.
T.
On Thu, Mar 3, 2016 at 8:12 AM, Ragia . <address@hidden> wrote:
>
> Hello,
> Kindly,
> I am trying to read the first example in this page
>
> analytictech.com/networks/dataentry.htm
>
> the example:
> dl n=5
> format = fullmatrix
> labels:
> barry,david,lin,pat,russ
> data:
> 0 1 1 1 0
> 1 0 0 0 1
> 1 0 0 1 0
> 1 0 1 0 1
> 0 1 0 1 0
>
>
> via
> g=read.graph(file.choose(), format = "dl" )
>
> and got the following Error
> Error in .Call("R_igraph_read_graph_dl", file, as.logical(directed),
PACKAGE = "igraph") :
> At foreign.c:3039 : syntax error, unexpected EOFF, expecting NEWLINE
> or DIGIT in line 1, Parse error
>
> thanks in advance
> Ragia
>
>
> _______________________________________________
> 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
foreign-dl-parser-lexer.2016-03-05.patch
Description: Binary data