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