[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] DL graph.read Error Msg
From: |
Ragia . |
Subject: |
Re: [igraph] DL graph.read Error Msg |
Date: |
Thu, 3 Mar 2016 11:10:18 +0200 |
lots of thanks it works for the example BUT
for moreno.ss.uci.edu/highschl.dat
I removed the first cell that is empty in each line and add line at the end as
in the example, in additon I remove the header and convert it into
DL n=73
format = fullmatrix
labels:
time1,time2
data:
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
.
......
to make it look as the one in the sample
unfortunately, I got this
Error in .Call("R_igraph_read_graph_dl", file, as.logical(directed), PACKAGE =
"igraph") :
At rinterface.c:445 : Invalid attribute length, Invalid value
In addition: Warning message:
In .Call("R_igraph_read_graph_dl", file, as.logical(directed), PACKAGE =
"igraph") :
At foreign.c:3062 :More vertices than specified in `DL' file
what should i do to make it work?
thanks
RagiA
----------------------------------------
> Date: Thu, 3 Mar 2016 09:45:46 +0100
> From: address@hidden
> To: 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