Washi1337 / Rivers

A fast graphing library that allows for constructing, importing, exporting, and analysing graph structures in .NET.
MIT License
135 stars 25 forks source link

Incorrect digraph parsing #4

Closed 766F6964 closed 5 years ago

766F6964 commented 5 years ago

When I try to parse the following Graph, Rivers throws a SyntaxException:

var reader = new StringReader(@"
strict digraph G {
    IL_0000 -> 1
    1 -> 3
    IL_0000 -> 2
    2 -> 3
}");

var dotReader = new DotReader(reader);
var cfg = dotReader.Read();

However on http://webgraphviz.com/ this can be visualized just fine: graph