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
Hi. I was investigating the possibility of porting your C# code here to Java, but after I tried typing in the 1:1 equivalent in Java of each line of code corresponding to what you had, and then porting the 2D visualizer from the original JavaScript repo that you had copied from, I noticed that there were no Steiner points in the resulting graph.
I am not well-versed in the understanding of how the L1 path finder actually works and am simply seeking to use it to potentially solve a problem. However, based on the absence of Steiner points in my 2D visualizer I tinkered with the code and became convinced that there is a typo in your solution versus the original JavaScript. I believe the typo to be on the following line in the AddSteiner function:
I have not submitted a pull request to your code to fix it directly because as I mentioned above I was using it for the purpose of creating a Java port. Feel free to fix it and not credit me at all if you are still using this code; I am simply noting this here for posterity and to improve the lives of those who have improved my own.
The text was updated successfully, but these errors were encountered:
You (reasonably so) use the variable name "v2" instead of "v" to avoid variable name shadowing, however we then see a typo doing a StabBox call in "v.x" and "v.y" when this should have been "v2.x" and "v2.y".
Hi. I was investigating the possibility of porting your C# code here to Java, but after I tried typing in the 1:1 equivalent in Java of each line of code corresponding to what you had, and then porting the 2D visualizer from the original JavaScript repo that you had copied from, I noticed that there were no Steiner points in the resulting graph.
I am not well-versed in the understanding of how the L1 path finder actually works and am simply seeking to use it to potentially solve a problem. However, based on the absence of Steiner points in my 2D visualizer I tinkered with the code and became convinced that there is a typo in your solution versus the original JavaScript. I believe the typo to be on the following line in the AddSteiner function:
l1-path-finder-dotnet/lib/Planner.cs
Line 511 in 44eaf75
The original JavaScript, by comparison, was checking
if (!thing.containsKey(...))
as opposed toif (thing.containsKey(...))
here:https://github.com/mikolalysenko/l1-path-finder/blob/4aa05fd85eb58cf332ec416079948d9860b1eefc/lib/planner.js#L318
I have not submitted a pull request to your code to fix it directly because as I mentioned above I was using it for the purpose of creating a Java port. Feel free to fix it and not credit me at all if you are still using this code; I am simply noting this here for posterity and to improve the lives of those who have improved my own.
The text was updated successfully, but these errors were encountered: