You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const dotStr = "graph g { a--b; a--c; a--d; a--1f; }";
const g = graphlibDot.read(dotStr);
console.log(g.children());
And this is the result: ["1", "a", "b", "c", "d", "f"] Five nodes ("a", "b", "c", "d", "1f") expected. Six nodes we have ("1f" transforms to "1" and "f").
If we draw this graph we'll see that node "a" will be connected to node "1" and node "f" will be in the air (disconnected graph).
Another example. If dot-string will be like this: const dotStr = "graph g { a--b; a--c; a--d; a--1b; a--1c; }"; the result is: ["1", "a", "b", "c", "d"]. Six nodes expected ("a", "b", "c", "d", "1b", "1c"). Five nodes we have ("1b" transforms to "1" and "b", "1c" transforms to "1" and "c" and then all "1" merges into one "1", also "b" and "c").
This behavior is critically incorrect for me because of random string-number node IDs in project. Luckily all of them may starts with letter - and all is OK. But if there is a number on the first place in ID - all crashes.
I hope you'll fix it or help me to find any ways to fix this behavior.
The text was updated successfully, but these errors were encountered:
Ok, it 2+ months pass, but is it too hard to answer even a word? Just a simple "this is not a problem at all, this is only your local problem, 4uk off yourself, suffer and deal with it".
Freaking easy.
Hi!
This is an issue example:
And this is the result:
["1", "a", "b", "c", "d", "f"]
Five nodes ("a", "b", "c", "d", "1f") expected. Six nodes we have ("1f" transforms to "1" and "f").
If we draw this graph we'll see that node "a" will be connected to node "1" and node "f" will be in the air (disconnected graph).
Another example. If dot-string will be like this:
const dotStr = "graph g { a--b; a--c; a--d; a--1b; a--1c; }";
the result is:["1", "a", "b", "c", "d"]
.Six nodes expected ("a", "b", "c", "d", "1b", "1c"). Five nodes we have ("1b" transforms to "1" and "b", "1c" transforms to "1" and "c" and then all "1" merges into one "1", also "b" and "c").
This behavior is critically incorrect for me because of random string-number node IDs in project. Luckily all of them may starts with letter - and all is OK. But if there is a number on the first place in ID - all crashes.
I hope you'll fix it or help me to find any ways to fix this behavior.
The text was updated successfully, but these errors were encountered: