igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] DL graph.read Error Msg


From: Tamas Nepusz
Subject: Re: [igraph] DL graph.read Error Msg
Date: Thu, 3 Mar 2016 09:45:46 +0100

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



reply via email to

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