[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] PATCH foreign-dl-parser.y: allow linebreak after 'data:' to
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] PATCH foreign-dl-parser.y: allow linebreak after 'data:' token |
Date: |
Wed, 17 Feb 2016 00:00:52 +0100 |
Hi,
Seems okay to me, thanks! Gabor, is it okay for you as well? If so,
I'll merge it into the master branch.
T.
On Wed, Feb 10, 2016 at 10:08 PM, Jannick <address@hidden> wrote:
> Hi,
>
>
>
> here a tiny patch for your consideration to have iGraph read in edge lists
> using the function ‘igraph_read_graph_dl’ where nodes are given by integers
> like
>
>
>
> DL n=4
>
> format = edgelist1
>
> data:
>
> 1 2
>
> 2 3
>
> 2 4
>
>
>
> The current version of the grammar (foreign-dl-parser.y) complains about a
> line break after ‘data:’ which the tiny patch below amends.
>
>
>
> Cheers,
>
> J.
>
>
>
> PATCH:
>
> --- "a/foreign-dl-parser.y"
>
> +++ "b/foreign-dl-parser.y"
>
> @@ -181,7 +181,7 @@ labeledmatrixline: LABEL zerooneseq NEWLINE { } ;
>
> edgelist1: FORMATEDGELIST1 newline edgelist1rest {} ;
>
> -edgelist1rest: DATA edgelist1data {}
>
> +edgelist1rest: DATA newline edgelist1data {}
>
> | LABELS newline labels newline DATA newline edgelist1data {}
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>