@@ -59,7 +59,7 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
var start = points.First();
|
||||
var path = new Path(start, []);
|
||||
foreach (var end in points.Skip(1)) {
|
||||
if (valid != null && !valid(start)) {
|
||||
if (valid != null && start != points.First() && !valid(start)) {
|
||||
return null;
|
||||
} else if (GetPath(start, end, valid, visited: [.. path.Hops.Select(h => h.Node)]) is not Path p) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user