|
From: | Jannick |
Subject: | [igraph] PATCH foreign-dl-parser.y: allow linebreak after 'data:' token |
Date: | Wed, 10 Feb 2016 22:08:42 +0100 |
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 {} |
[Prev in Thread] | Current Thread | [Next in Thread] |