How to get PathNode?

In v4.0, we patched both ConstantPath & ABPath to get PathNode. Functions were as below :

public PathNode GetPathNode(int i )
{
if ( i < allNodes.Count)
return pathHandler.GetPathNode(allNodes[i]);

        return null;
    }


    public PathNode GetPathNode(GraphNode node)
    {
        return pathHandler.GetPathNode(node);
    }

Now, after upgrade to v5.0, according to you, how can we restore this kind of services ? We are mainly using them.

Best

Hi

PathNodes are still exposed via the pathHandler.GetPathNode(node) method. Your code should work just fine, I think.
I recommend subclassing, instead of patching the files themselves, though.